aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/common/guard/src
diff options
context:
space:
mode:
authorTemoc Rodriguez <cr056n@att.com>2017-09-12 08:23:53 -0700
committerTemoc Rodriguez <cr056n@att.com>2017-09-12 09:08:13 -0700
commite4e05491b0bee53542611592341f2a5f1732190d (patch)
tree0a296dac61426490913deb40021c1ef517259e96 /controlloop/common/guard/src
parente126a975d8c6f3970dbf87ead79fa69afe510301 (diff)
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 <cr056n@att.com>
Diffstat (limited to 'controlloop/common/guard/src')
-rw-r--r--controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java5
1 files changed, 3 insertions, 2 deletions
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<PIPRequest> attributesRequired() {
// TODO Auto-generated method stub
- return null;
+ return Collections.emptySet();
}
@Override
public Collection<PIPRequest> attributesProvided() {
// TODO Auto-generated method stub
- return null;
+ return Collections.emptySet();
}
@Override