fix null pointer exception
This commit is contained in:
parent
3f7819937b
commit
17fa2617f7
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue