This commit is contained in:
Johannes Mockenhaupt 2017-10-30 19:52:26 +01:00
parent 75bc2cd940
commit 2198747feb
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -763,7 +763,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
extendedJson.put("TempBasalPercent", ps.tbrPercent);
extendedJson.put("TempBasalRemaining", ps.tbrRemainingDuration);
}
if (ps.alertCodes.errorCode != null) {
if (ps.alertCodes != null && ps.alertCodes.errorCode != null) {
extendedJson.put("ErrorCode", ps.alertCodes.errorCode);
}
pumpJson.put("extended", extendedJson);