Added fix for porential nullpointerexception
Issue-ID: HOLMES-189
Change-Id: Ibfb9868e35e358f1eca661871929f8333d402e39
Signed-off-by: Chandan Ghosh <cghosh12@in.ibm.com>
} catch (Exception e) {
log.error("Failed to initialize the engine service module.", e);
}
} catch (Exception e) {
log.error("Failed to initialize the engine service module.", e);
}
- container = ks.newKieContainer(km.getReleaseId());
+ if(null!=km) {
+ container = ks.newKieContainer(km.getReleaseId());
+ }
session = container.newKieSession();
deployed.clear();
}
session = container.newKieSession();
deployed.clear();
}