diff options
author | Chandan Ghosh <cghosh12@in.ibm.com> | 2019-01-16 16:24:52 +0530 |
---|---|---|
committer | Chandan Ghosh <cghosh12@in.ibm.com> | 2019-01-16 16:28:45 +0530 |
commit | 55151b1589968635ecb55e70f39b9b5fbb468eb6 (patch) | |
tree | b7ac67c1551ee902ea354623e33443cbfd8625a1 /engine-d/src/main/java/org | |
parent | bf652bc2ae7362eff1ab0a15b719465b296e4776 (diff) |
Added fix for potential nullpointerexception
Added fix for porential nullpointerexception
Issue-ID: HOLMES-189
Change-Id: Ibfb9868e35e358f1eca661871929f8333d402e39
Signed-off-by: Chandan Ghosh <cghosh12@in.ibm.com>
Diffstat (limited to 'engine-d/src/main/java/org')
-rw-r--r-- | engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java b/engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java index 7472457..b474e69 100644 --- a/engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java +++ b/engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java @@ -99,7 +99,9 @@ public class DroolsEngine { } 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(); } |