The logfiles preference hash wasn't getting created, resulting in
crashes.
When there was no link, don't try to load existing data.
Signed-off-by: Keith Packard <keithp@keithp.com>
telemetry_rates = new Hashtable<Integer,Integer>();
telemetry_rates = new Hashtable<Integer,Integer>();
+ logfiles = new Hashtable<Integer,File>();
+
voice = backend.getBoolean(voicePreference, true);
callsign = backend.getString(callsignPreference,"N0CALL");
voice = backend.getBoolean(voicePreference, true);
callsign = backend.getString(callsignPreference,"N0CALL");
}
private static AltosFlightReader existing_data(AltosLink link) {
}
private static AltosFlightReader existing_data(AltosLink link) {
+ if (link == null)
+ return null;
+
File file = AltosPreferences.logfile(link.serial);
if (file != null) {
AltosStateIterable iterable = AltosStateIterable.iterable(file);
File file = AltosPreferences.logfile(link.serial);
if (file != null) {
AltosStateIterable iterable = AltosStateIterable.iterable(file);