summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--javatoscachecker/checker/src/main/java/org/onap/tosca/checker/Workflows.java2
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,