diff options
Diffstat (limited to 'policy-management/src/main/java/org')
2 files changed, 3 insertions, 6 deletions
diff --git a/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/JsonProtocolFilter.java b/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/JsonProtocolFilter.java index d6146a30..7831e7b8 100644 --- a/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/JsonProtocolFilter.java +++ b/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/JsonProtocolFilter.java @@ -189,7 +189,7 @@ public class JsonProtocolFilter { } try { - if (json == null || !json.isJsonObject()) { + if (!json.isJsonObject()) { return false; } diff --git a/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/ProtocolCoderToolset.java b/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/ProtocolCoderToolset.java index fb3f95d3..bf7a43f3 100644 --- a/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/ProtocolCoderToolset.java +++ b/policy-management/src/main/java/org/openecomp/policy/drools/protocol/coders/ProtocolCoderToolset.java @@ -642,13 +642,10 @@ class GsonProtocolCoderToolset extends ProtocolCoderToolset { throws IllegalArgumentException, UnsupportedOperationException { DroolsController droolsController = - DroolsController.factory.get(groupId, artifactId, ""); + DroolsController.factory.get(groupId, artifactId, null); if (droolsController == null) { logger.info("{}: no drools-controller to process {} (continue)", this, event); - if (this.customCoder != null) { - logger.warn("{}: no drools-controller to process {}", this, event); - throw new IllegalStateException("custom-coder but no drools-controller"); - } + throw new IllegalStateException("custom-coder but no drools-controller"); } if (this.customCoder != null) { |