another check for null

This commit is contained in:
Milos Kozak 2017-06-27 11:01:38 +02:00
parent ab63c2fb48
commit 42b42a90eb

View file

@ -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;