summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-impl/src/main
diff options
context:
space:
mode:
authorolegb <olegb@amdocs.com>2018-03-13 14:35:36 +0200
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-03-14 14:44:04 +0000
commit8b9114fc27e1849179e31c713bbd54c2119ee154 (patch)
tree0a616c309902e9b99d906563b630ffa419f653df /openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-impl/src/main
parentc985d052d8e7ba92404259882af34babf7faa2ca (diff)
Empty error message during Proceed To Validation
Issue-ID: SDC-1120 Change-Id: I6653d6404e8d43ec81016f3497051ac327375c88 Signed-off-by: olegb <olegb@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-impl/src/main')
-rw-r--r--openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-impl/src/main/java/org/openecomp/sdc/validation/impl/validators/HeatValidator.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-impl/src/main/java/org/openecomp/sdc/validation/impl/validators/HeatValidator.java b/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-impl/src/main/java/org/openecomp/sdc/validation/impl/validators/HeatValidator.java
index 0c4371439b..d35a4842d3 100644
--- a/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-impl/src/main/java/org/openecomp/sdc/validation/impl/validators/HeatValidator.java
+++ b/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-impl/src/main/java/org/openecomp/sdc/validation/impl/validators/HeatValidator.java
@@ -332,7 +332,12 @@ public class HeatValidator implements Validator {
private static String getResourceTypeFromResourcesMap(String resourceName,
HeatOrchestrationTemplate
heatOrchestrationTemplate) {
- return heatOrchestrationTemplate.getResources().get(resourceName).getType();
+ Resource resource = heatOrchestrationTemplate.getResources().get(resourceName);
+ if (Objects.nonNull(resource)) {
+ return resource.getType();
+ } else {
+ return null;
+ }
}
/* validation 17 + */