check for NPE
This commit is contained in:
parent
463031bd31
commit
727ace4cc1
1 changed files with 1 additions and 1 deletions
|
@ -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("");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue