diff options
author | Venkata Harish K Kajur <vk250x@att.com> | 2017-08-21 17:01:35 -0400 |
---|---|---|
committer | Venkata Harish K Kajur <vk250x@att.com> | 2017-08-21 17:02:45 -0400 |
commit | 724086e36cabf6fb53285260fada6afe0280c571 (patch) | |
tree | bcced55dc657d057119373c6e976413189706c8e /aai-traversal | |
parent | c83f2659ff384e4c8e234cb67a20fdb245f98b39 (diff) |
Fix the invalid namespace 500 error model query
Issue-ID: AAI-205
Change-Id: I09dde57a2f69ef56acc5c87a5b0472e353e492aa
Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'aai-traversal')
-rw-r--r-- | aai-traversal/src/main/java/org/openecomp/aai/dbgraphmap/SearchGraph.java | 6 |
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<>(); |