check for NPE

This commit is contained in:
Milos Kozak 2018-02-02 09:17:26 +01:00
parent 463031bd31
commit 727ace4cc1

View file

@ -124,7 +124,7 @@ public class NSDeviceStatus {
static DeviceStatusPumpData deviceStatusPumpData = null; static DeviceStatusPumpData deviceStatusPumpData = null;
public Spanned getExtendedPumpStatus() { public Spanned getExtendedPumpStatus() {
if (deviceStatusPumpData.extended != null) if (deviceStatusPumpData != null && deviceStatusPumpData.extended != null)
return deviceStatusPumpData.extended; return deviceStatusPumpData.extended;
return Html.fromHtml(""); return Html.fromHtml("");
} }