mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 09:01:55 +01:00
Fix crash on opening activity details for some devices
This commit is contained in:
parent
af17e55c11
commit
00f8d2259f
@ -768,7 +768,7 @@ public class ActivitySummaryDetail extends AbstractGBActivity {
|
||||
}
|
||||
}
|
||||
final String summaryData = currentItem.getSummaryData();
|
||||
if (summaryData.contains(INTERNAL_HAS_GPS)) {
|
||||
if (summaryData != null && summaryData.contains(INTERNAL_HAS_GPS)) {
|
||||
try {
|
||||
final JSONObject summaryDataObject = new JSONObject(summaryData);
|
||||
final JSONObject internalHasGps = summaryDataObject.getJSONObject(INTERNAL_HAS_GPS);
|
||||
|
Loading…
Reference in New Issue
Block a user