check for no profile

This commit is contained in:
Milos Kozak 2018-01-25 11:06:35 +01:00
parent 801182eccd
commit 7be0bfb27e

View file

@ -103,6 +103,11 @@ public class IobCobThread extends Thread {
continue; continue;
} }
if (profile == null) {
log.debug("Aborting calculation thread (no profile): " + from);
return; // profile not set yet
}
if (profile.getIsf(bgTime) == null) { if (profile.getIsf(bgTime) == null) {
log.debug("Aborting calculation thread (no ISF): " + from); log.debug("Aborting calculation thread (no ISF): " + from);
return; // profile not set yet return; // profile not set yet