summaryrefslogtreecommitdiffstats
path: root/ONAP-PAP-REST/src
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2018-03-08 19:32:54 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-08 19:32:54 +0000
commit90dfd1077dc78afd9e1ff2c1ad351f7ecafac983 (patch)
tree016305de813412b27dff5fa50084a68863b95147 /ONAP-PAP-REST/src
parent21b74c3ead2e70d31dce836185cdc9bf3c519993 (diff)
parent76bf0782ddc5b1c7c72572d538714c1622c9ad9f (diff)
Merge "Sonar Major"
Diffstat (limited to 'ONAP-PAP-REST/src')
-rw-r--r--ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/elk/client/ElkConnectorImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/elk/client/ElkConnectorImpl.java b/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/elk/client/ElkConnectorImpl.java
index 59bf50071..d87e75f71 100644
--- a/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/elk/client/ElkConnectorImpl.java
+++ b/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/elk/client/ElkConnectorImpl.java
@@ -166,7 +166,7 @@ public class ElkConnectorImpl implements ElkConnector{
String errorMessage = result.getErrorMessage();
if (errorMessage != null && !errorMessage.isEmpty()) {
- String xMessage = errorMessage;
+ String xMessage;
if (errorMessage.contains("TokenMgrError")) {
int indexError = errorMessage.lastIndexOf("TokenMgrError");
xMessage = "Invalid Search Expression. Details: " + errorMessage.substring(indexError);