aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib
diff options
context:
space:
mode:
authorshrek2000 <orenkle@amdocs.com>2017-12-27 10:10:56 +0200
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2017-12-27 11:40:26 +0000
commitc0f7babc2b4d6ccbcef059f6f15b84232dcdcf34 (patch)
tree105886a22e8d0299f11aa73858ec5a6b2f12c82d /openecomp-be/lib
parent32a53dfd053b9ea2a999ddd6f3bf65bc4470b177 (diff)
Avoid Null Pointer
Change-Id: Ie6f78934a1c6407a05bd988fb234bf5662fb26e8 Issue-ID: SDC-799 Signed-off-by: shrek2000 <orenkle@amdocs.com>
Diffstat (limited to 'openecomp-be/lib')
-rw-r--r--openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/java/org/openecomp/core/impl/ToscaConverterImpl.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/java/org/openecomp/core/impl/ToscaConverterImpl.java b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/java/org/openecomp/core/impl/ToscaConverterImpl.java
index 283f7fc3be..9b3a300934 100644
--- a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/java/org/openecomp/core/impl/ToscaConverterImpl.java
+++ b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/java/org/openecomp/core/impl/ToscaConverterImpl.java
@@ -126,9 +126,6 @@ public class ToscaConverterImpl implements ToscaConverter {
GlobalSubstitutionServiceTemplate gsst) {
try {
ServiceTemplateReaderService readerService = new ServiceTemplateReaderServiceImpl(csarFiles.get(key));
- if (readerService == null) {
- return;
- }
Object nodeTypes = readerService.getNodeTypes();
if (nodeTypes instanceof Map) {
Map<String, NodeType> nodeTypeMap = (Map<String, NodeType>) nodeTypes;