altosui: Don't add pyro table to graph UI when npyro == MISSING
authorKeith Packard <keithp@keithp.com>
Thu, 20 Jun 2024 22:34:44 +0000 (15:34 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 20 Jun 2024 22:34:44 +0000 (15:34 -0700)
For some reason, npyro is set to MISSING in some flight records. Check
for that before adding pyro info.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosGraphUI.java

index 8f52728bf13cfe1ea9d6c5e95a0e104d341e3440..47ba3d4275d0ca3f04a7913e680b7e9aaf2985e9 100644 (file)
@@ -140,7 +140,7 @@ public class AltosGraphUI extends AltosUIFrame implements AltosFontListener, Alt
                if (config_data != null) {
                        configTable = new AltosFlightConfigTable(config_data);
                        pane.add("Configuration", configTable);
-                       if (config_data.npyro > 0) {
+                       if (config_data.npyro > 0 && config_data.npyro != AltosLib.MISSING) {
                                pyroTable = new AltosFlightPyroTable(config_data.pyros, config_data.npyro);
                                pane.add("Pyros", pyroTable);
                        }