Skip to content

Commit

Permalink
Fixed warning "Problem while unpacking evaluated trigger ...: referen…
Browse files Browse the repository at this point in the history
…ced trigger with id 1 is not present among base triggers"
  • Loading branch information
mederly committed Jul 31, 2017
1 parent e8a0f61 commit 543f3ea
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -178,6 +178,7 @@ private static EvaluatedPolicyRuleTriggerType pack(EvaluatedPolicyRuleTriggerTyp
public static List<EvaluatedPolicyRuleTriggerType> unpack(List<EvaluatedPolicyRuleTriggerType> triggers) {
List<EvaluatedPolicyRuleTriggerType> rv = CloneUtil.cloneCollectionMembers(triggers);
unpack(rv, triggers);
visit(rv, t -> t.triggerId(null));
return rv;
}

Expand All @@ -195,7 +196,6 @@ private static void unpack(List<EvaluatedPolicyRuleTriggerType> triggers,
}
triggers.clear();
triggers.addAll(unpacked);
triggers.forEach(t -> t.setTriggerId(null));
}

private static EvaluatedPolicyRuleTriggerType unpack(EvaluatedPolicyRuleTriggerType trigger,
Expand Down

0 comments on commit 543f3ea

Please sign in to comment.