summaryrefslogtreecommitdiffstats
path: root/aai-traversal
diff options
context:
space:
mode:
Diffstat (limited to 'aai-traversal')
-rw-r--r--aai-traversal/src/main/java/org/openecomp/aai/dbgraphmap/SearchGraph.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/aai-traversal/src/main/java/org/openecomp/aai/dbgraphmap/SearchGraph.java b/aai-traversal/src/main/java/org/openecomp/aai/dbgraphmap/SearchGraph.java
index e68ab1a..58c4d1d 100644
--- a/aai-traversal/src/main/java/org/openecomp/aai/dbgraphmap/SearchGraph.java
+++ b/aai-traversal/src/main/java/org/openecomp/aai/dbgraphmap/SearchGraph.java
@@ -547,9 +547,8 @@ public class SearchGraph {
HashMap<String,Object> namedQueryLookupHash = new HashMap<String,Object>();
DynamicEntity qp = modelAndNamedQuerySearch.get("queryParameters");
-
String namedQueryUuid = null;
- if (qp.isSet("namedQuery")) {
+ if ((qp != null) && qp.isSet("namedQuery")) {
DynamicEntity namedQuery = (DynamicEntity) qp.get("namedQuery");
if (namedQuery.isSet("namedQueryUuid")) {
@@ -666,9 +665,6 @@ public class SearchGraph {
if (modelAndNamedQuerySearch == null) {
throw new AAIException("AAI_5105");
}
- if (modelAndNamedQuerySearch == null) {
- throw new AAIException("AAI_5105");
- }
Map<String,Object> modelQueryLookupHash = new HashMap<>();