diff options
author | Arindam Mondal <arind.mondal@samsung.com> | 2018-07-27 13:11:04 +0900 |
---|---|---|
committer | ONAP <arind.mondal@samsung.com> | 2018-07-27 13:17:49 +0900 |
commit | 3276ac64bde54363c4dfa9b108bd3d4736999a32 (patch) | |
tree | 33bd357ad58c75dd7fded64918949d5097b41ef2 | |
parent | 1ca11342468ac121e6468ecf5ece5bdfa329eecb (diff) |
Fix sonar reported NPE issue
Issue-ID: MODELING-107
Change-Id: I285e3dfbf104a68929185545d1a29140820b99b5
Signed-off-by: ONAP <arind.mondal@samsung.com>
-rw-r--r-- | javatoscachecker/checker/src/main/java/org/onap/tosca/checker/Workflows.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/javatoscachecker/checker/src/main/java/org/onap/tosca/checker/Workflows.java b/javatoscachecker/checker/src/main/java/org/onap/tosca/checker/Workflows.java index 3f6a445..eb9b241 100644 --- a/javatoscachecker/checker/src/main/java/org/onap/tosca/checker/Workflows.java +++ b/javatoscachecker/checker/src/main/java/org/onap/tosca/checker/Workflows.java @@ -241,7 +241,7 @@ public class Workflows { } String targetRelationship = (String)theDef.get("target_relationship"); - if (targetRelationship != null) { + if (targetRelationship != null && targetConstruct!=null ) { if (targetConstruct.equals(Construct.Node)) { //'The optional name of a requirement of the target in case the step refers to a relationship rather than a node or group' if (null == theContext.catalog().getRequirementDefinition(Construct.Node, |