1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 06:22:55 +01:00

Fossil Hybrid HR: fix initialization on older firmwares

Avoid NPE when no applications are available
This commit is contained in:
cpfeiffer 2021-03-21 19:27:32 +01:00
parent 2c12b1bf73
commit e9766da89c

View File

@ -148,7 +148,7 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
HashMap<String, Bitmap> appIconCache = new HashMap<>();
String lastPostedApp = null;
List<ApplicationInformation> installedApplications;
List<ApplicationInformation> installedApplications = new ArrayList();
enum CONNECTION_MODE {
NOT_INITIALIZED,
@ -1430,4 +1430,4 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
}
return null;
}
}
}