From e4e05491b0bee53542611592341f2a5f1732190d Mon Sep 17 00:00:00 2001 From: Temoc Rodriguez Date: Tue, 12 Sep 2017 08:23:53 -0700 Subject: Fix nullPointerException Fix nullPointerException by changing return values of attributesProvided and attributesRequired from null to empty Set. Issue-ID: POLICY-55 Change-Id: I9516a9bcad591cc582834cb49fa54e58a1f45a47 Signed-off-by: Temoc Rodriguez --- .../src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'controlloop/common/guard/src/main/java') diff --git a/controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java b/controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java index 0ec0098a1..3e93bd761 100644 --- a/controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java +++ b/controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java @@ -23,6 +23,7 @@ package org.onap.policy.guard; import java.math.BigInteger; import java.sql.Timestamp; import java.util.Collection; +import java.util.Collections; import java.util.Date; import java.util.HashSet; import java.util.Iterator; @@ -112,13 +113,13 @@ public class PIPEngineGetHistory extends StdConfigurableEngine{ @Override public Collection attributesRequired() { // TODO Auto-generated method stub - return null; + return Collections.emptySet(); } @Override public Collection attributesProvided() { // TODO Auto-generated method stub - return null; + return Collections.emptySet(); } @Override -- cgit 1.2.3-korg