-
Sub-task
-
Resolution: Done
-
Major
-
8.7.0.Final
-
None
-
2021 Week 40-42 (from Oct 4), 2021 Week 43-45 (from Oct 25)
-
Undefined
-
NEW
-
NEW
Imagine the following constraint:
constraintFactory.from(Cluster.class) .ifExists(Pod.class, Joiners.equal(Function.identity(), pod -> pod.getNode().getCluster()))
The constraint throws a NPE as pod.getNode() is null, because pod is the PlanningEntity and its reference to Node is the PlanningVariable.
In this context, the ifExists() behaves like fromUnfiltered(), without any option to avoid the uninitialized planning entities.
- is blocked by
-
PLANNER-2107 Constraint Streams: Conditional propagation from a stream
- Open