aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/m2
diff options
context:
space:
mode:
Diffstat (limited to 'controlloop/m2')
-rw-r--r--controlloop/m2/util/src/main/java/org/onap/policy/util/DroolsSessionCommonSerializable.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/controlloop/m2/util/src/main/java/org/onap/policy/util/DroolsSessionCommonSerializable.java b/controlloop/m2/util/src/main/java/org/onap/policy/util/DroolsSessionCommonSerializable.java
index 0834026a0..c76a8c244 100644
--- a/controlloop/m2/util/src/main/java/org/onap/policy/util/DroolsSessionCommonSerializable.java
+++ b/controlloop/m2/util/src/main/java/org/onap/policy/util/DroolsSessionCommonSerializable.java
@@ -108,14 +108,13 @@ public class DroolsSessionCommonSerializable implements Serializable {
if (session != null) {
// we found the 'PolicySession' -- now, look for the adjunct
Object adj = session.getAdjunct(Adjunct.class);
- if (adj == null || !(adj instanceof Adjunct)) {
+ if (!(adj instanceof Adjunct)) {
// adjunct does not exist, or has the wrong type -- create it
adjunct = new Adjunct();
session.setAdjunct(Adjunct.class, adjunct);
} else {
// found the adjunct -- return it
adjunct = (Adjunct) adj;
- //adjunct = Adjunct.class.cast(adj);
}
}
return adjunct;