From b8f82899e1d5777fc4db912d1dc4030aa7e6d99d Mon Sep 17 00:00:00 2001 From: Michael Mokry Date: Mon, 15 Apr 2019 12:47:46 -0500 Subject: Fix a couple of sonar issues one blocker 1. fixed nullpointer blocker issue in CoordinationGuardTranslator.java 2. fixed "log or rethrow exception" critical issue 3. throw exceptions instead of returning null values Change-Id: I2d567fe566c6f761ec2699016c4a868f203c9a01 Issue-ID: POLICY-1451 Signed-off-by: Michael Mokry Signed-off-by: Joshua Reich --- .../application/common/std/StdXacmlApplicationServiceProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/common/src/main/java/org') diff --git a/applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/std/StdXacmlApplicationServiceProvider.java b/applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/std/StdXacmlApplicationServiceProvider.java index 2b8048c4..451ef7e1 100644 --- a/applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/std/StdXacmlApplicationServiceProvider.java +++ b/applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/std/StdXacmlApplicationServiceProvider.java @@ -217,7 +217,7 @@ public abstract class StdXacmlApplicationServiceProvider implements XacmlApplica XacmlPolicyUtils.storeXacmlProperties(newProperties, XacmlPolicyUtils.getPropertiesPath(this.getDataPath())); } catch (IOException e) { - LOGGER.error("Failed to save the properties to disk {}", newProperties); + LOGGER.error("Failed to save the properties to disk {}", newProperties, e); } // // Reload the engine -- cgit 1.2.3-korg