diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/data/NSSettingsStatus.java b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/data/NSSettingsStatus.java index bb01050702..189474c9c8 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/data/NSSettingsStatus.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/data/NSSettingsStatus.java @@ -189,8 +189,7 @@ public class NSSettingsStatus { } } if (settingsO.has("alarmTimeagoWarnMins") && what == "alarmTimeagoWarnMins"){ - JSONObject tObject = settingsO.getJSONObject("alarmTimeagoWarnMins"); - Double result = tObject.getDouble(what); + Double result = settingsO.getDouble(what); return result; } }