another check for null
This commit is contained in:
parent
ab63c2fb48
commit
42b42a90eb
1 changed files with 2 additions and 0 deletions
|
@ -619,6 +619,8 @@ public class IobCobCalculatorPlugin implements PluginBase {
|
|||
if (MainApp.getConfigBuilder() == null)
|
||||
return; // app still initializing
|
||||
Profile profile = MainApp.getConfigBuilder().getProfile();
|
||||
if (profile == null)
|
||||
return; // app still initializing
|
||||
dia = profile.getDia();
|
||||
if (ev == null) { // on init no need of reset
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue