Merge branch 'sitemap' into buttonbox
[fw/altos] / ao-tools / altosui / AltosSiteMap.java
index e222e2c8cc88e592a8f90627d24c2986a33b54b8..2c5420619eda46a36ae29a1b91eda1a7a371c047 100644 (file)
@@ -213,6 +213,8 @@ public class AltosSiteMap extends JScrollPane implements AltosFlightDisplay {
        boolean initialised = false;
        public void show(AltosState state, int crc_errors) {
                // if insufficient gps data, nothing to update
+               if (state.gps == null)
+                       return;
                if (!state.gps.locked) {
                        if (state.pad_lat == 0 && state.pad_lon == 0)
                                return;
@@ -268,4 +270,3 @@ public class AltosSiteMap extends JScrollPane implements AltosFlightDisplay {
                setPreferredSize(new Dimension(500,200));
        }
 }
-