diff options
| author | Keith Packard <keithp@keithp.com> | 2014-01-01 22:00:24 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-01-01 22:00:24 -0800 | 
| commit | b15bd24bbe48e338497c6257f5fe2c7fd1cbffbb (patch) | |
| tree | dccd865888d4aa2bffac6444cbca219119aa0586 /altosui/AltosUI.java | |
| parent | c35ea586b9e792c45b287924fd256928308d9a36 (diff) | |
altosui: Handle a missing libaltos when starting up
Skip a null list of devices when figuring out what to open monitor
windows for during startup.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosUI.java')
| -rw-r--r-- | altosui/AltosUI.java | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java index 8d5cacd4..50c5baab 100644 --- a/altosui/AltosUI.java +++ b/altosui/AltosUI.java @@ -560,8 +560,9 @@ public class AltosUI extends AltosUIFrame {  			AltosUI altosui = new AltosUI();  			java.util.List<AltosDevice> devices = AltosUSBDevice.list(Altos.product_basestation); -			for (AltosDevice device : devices) -				altosui.telemetry_window(device); +			if (devices != null) +				for (AltosDevice device : devices) +					altosui.telemetry_window(device);  		} else {  			int process = process_none;  			for (int i = 0; i < args.length; i++) { | 
