Fixed the Policy API issues and Bugfixes
[policy/engine.git] / ECOMP-PAP-REST / src / main / java / org / openecomp / policy / pap / xacml / rest / elk / client / ElkConnectorImpl.java
index 5508ddc..4dd48ad 100644 (file)
@@ -194,7 +194,7 @@ public class ElkConnectorImpl implements ElkConnector{
                        LOGGER.trace("ENTER: " + text);
                }
 
-               if (filter_s == null || filter_s.size() <= 0) {
+               if (filter_s == null || filter_s.size() == 0) {
                        return search(type, text);
                }
 
@@ -378,7 +378,7 @@ public class ElkConnectorImpl implements ElkConnector{
                        result = jestClient.execute(deleteRequest);
                } catch (IllegalArgumentException | IOException e) {
                        LOGGER.warn(XACMLErrorConstants.ERROR_SYSTEM_ERROR + ": delete:" + 
-                                       ((indexType != null) ? indexType.name() : "null") + ":" + policyData.getNewFileName() + ": " + 
+                                       indexType +  ": null" + ":" + policyData.getNewFileName() + ": " + 
                                        e.getMessage(), e);
                        throw new IllegalStateException(e);
                }