fix null pointer exception

This commit is contained in:
Milos Kozak 2017-09-18 20:23:05 +02:00
parent 3f7819937b
commit 17fa2617f7

View file

@ -192,6 +192,10 @@ public class StatuslinePlugin implements PluginBase {
+ DecimalFormatter.to2Decimal(basalIob.basaliob) + ")";
}
Profile profile = MainApp.getConfigBuilder().getProfile();
if (profile == null)
return status;
if (!mPrefs.getBoolean("xdripstatus_showbgi", false)) {
return status;
}