From: Keith Packard Date: Thu, 2 Jan 2014 06:00:24 +0000 (-0800) Subject: altosui: Handle a missing libaltos when starting up X-Git-Tag: 1.3.1~24 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=b15bd24bbe48e338497c6257f5fe2c7fd1cbffbb 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 --- 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 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++) {