From 00f8d2259f93fa30808fafb9213d124277297ca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Fri, 20 Sep 2024 14:04:18 +0100 Subject: [PATCH] Fix crash on opening activity details for some devices --- .../gadgetbridge/activities/ActivitySummaryDetail.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);