#1331: Fix NPE in restrictionForUnchangedSegment if actual version is null by andrzejj0 · Pull Request #1332 · mojohaus/versions (original) (raw)

A fix for an NPE in an edge case: restrictionForUnchangedSegment(actualVersion, unchangedSegment, allowSnapshots). If actualVersion is a version range with an open upper boundary, unchangedSegment is not empty), then it triggers an NPE.

I tried to limit the scope.