Skip to content

Conversation

@Christopher-Chianelli
Copy link
Contributor

Value selectors can return nulls as a valid selection. In particular, when entity value ranges are used with allows unassigned, null may be returned.

Value selectors can return nulls as a valid selection. In particular,
when entity value ranges are used with allows unassigned, `null`
may be returned.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 2, 2025

@triceo triceo added this to the v1.29.0 milestone Dec 3, 2025
@zepfred
Copy link
Contributor

zepfred commented Dec 3, 2025

@triceo the change makes sense to me. I remember that, when working on the entity-value range nearby support, a solution for when there is no reachable value for a selection was to return null. So, that change can explain why we are only now seeing this error, because previously, the Nearby selector couldn't return a null value.

https://github.com/TimefoldAI/timefold-solver-enterprise/blob/bcdea34f2c12f8a34418494e70480bfbf3d09075/core/src/main/java/ai/timefold/solver/enterprise/core/nearby/common/ListVariableNearbyDistanceMatrix.java#L147

@triceo
Copy link
Collaborator

triceo commented Dec 5, 2025

Replaced by other PRs.

@triceo triceo closed this Dec 5, 2025
@triceo triceo removed this from the v1.29.0 milestone Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants