diff options
Diffstat (limited to 'core/core-engine')
-rw-r--r-- | core/core-engine/src/main/java/org/onap/policy/apex/core/engine/engine/impl/ApexEngineImpl.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/core-engine/src/main/java/org/onap/policy/apex/core/engine/engine/impl/ApexEngineImpl.java b/core/core-engine/src/main/java/org/onap/policy/apex/core/engine/engine/impl/ApexEngineImpl.java index 3349b609f..3497ed660 100644 --- a/core/core-engine/src/main/java/org/onap/policy/apex/core/engine/engine/impl/ApexEngineImpl.java +++ b/core/core-engine/src/main/java/org/onap/policy/apex/core/engine/engine/impl/ApexEngineImpl.java @@ -247,8 +247,11 @@ public class ApexEngineImpl implements ApexEngine { // Clear everything stateMachineHandler = null; engineStats.clean(); - internalContext.clear(); - internalContext = null; + + if (internalContext != null) { + internalContext.clear(); + internalContext = null; + } } /* |