From 727ace4cc1b67de3b084da88eb3520bfa82af2ce Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Fri, 2 Feb 2018 09:17:26 +0100 Subject: [PATCH] check for NPE --- .../plugins/NSClientInternal/data/NSDeviceStatus.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/data/NSDeviceStatus.java b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/data/NSDeviceStatus.java index 315e9724ce..d1755dd4c1 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/data/NSDeviceStatus.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/data/NSDeviceStatus.java @@ -124,7 +124,7 @@ public class NSDeviceStatus { static DeviceStatusPumpData deviceStatusPumpData = null; public Spanned getExtendedPumpStatus() { - if (deviceStatusPumpData.extended != null) + if (deviceStatusPumpData != null && deviceStatusPumpData.extended != null) return deviceStatusPumpData.extended; return Html.fromHtml(""); }