diff options
author | Keith Packard <keithp@keithp.com> | 2012-10-18 15:18:52 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-10-18 15:18:52 -0700 |
commit | 5a55501660ebab3b858a48483c5df1cfb4e858e4 (patch) | |
tree | 9b5d8305d9c65b10f82f6839bb1b5c169681ef00 /altosui/AltosDescent.java | |
parent | 0361235c9ef56738ba0e97be88a85afef0ce8268 (diff) | |
parent | 440365bd17d804c2f574c35164612cf1682397d7 (diff) |
Merge branch 'master' into mm-ms5611
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosDescent.java')
-rw-r--r-- | altosui/AltosDescent.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/altosui/AltosDescent.java b/altosui/AltosDescent.java index e9ff590b..a71cdc10 100644 --- a/altosui/AltosDescent.java +++ b/altosui/AltosDescent.java @@ -309,7 +309,10 @@ public class AltosDescent extends JComponent implements AltosFlightDisplay { class Distance extends DescentValue { void show(AltosState state, int crc_errors) { - show(AltosConvert.distance, state.from_pad.distance); + if (state.from_pad != null) + show(AltosConvert.distance, state.from_pad.distance); + else + show("???"); } public Distance (GridBagLayout layout, int x, int y) { |