diff options
author | Keith Packard <keithp@keithp.com> | 2013-04-15 23:14:22 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-04-15 23:14:22 -0700 |
commit | eba3aa949decacd5592472a3cda920aa6a06d96f (patch) | |
tree | eba2fcbb13124da1bb51c6a34acb40254b50c0ae /altosui/AltosFlightUI.java | |
parent | 58dd4b88fe738e005a13dfd69651853ea7f79205 (diff) |
altoslib: Check for null state.gps before accessing it in eeprom records
Used to be we'd set state.gps to garbage before seeing the first GPS
record; now we leave it null, which will cause crashes for code that
doesn't expect it. The code for reading and replaying eeprom data was
not checking and was nicely crashing as a result.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosFlightUI.java')
0 files changed, 0 insertions, 0 deletions