summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVenkata Harish K Kajur <vk250x@att.com>2017-08-21 17:01:35 -0400
committerVenkata Harish K Kajur <vk250x@att.com>2017-08-21 17:02:45 -0400
commit724086e36cabf6fb53285260fada6afe0280c571 (patch)
treebcced55dc657d057119373c6e976413189706c8e
parentc83f2659ff384e4c8e234cb67a20fdb245f98b39 (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>
-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<>();