diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ActivitySummaryDetail.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ActivitySummaryDetail.java index 7003b730d..7da25505b 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ActivitySummaryDetail.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ActivitySummaryDetail.java @@ -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);