Commit a636e5c
authored
Fix NPE in UpgradeDependencyVersion ext property upgrade when version is unresolvable (#7299)
DependencyVersionSelector.select() can return null when no matching version
is found. The downgrade prevention code added in #7290 passes this null into
versionComparator.upgrade() via singletonList(selectedVersion), which then
calls RELEASE_PATTERN.matcher(null) and throws NullPointerException.
Add a null guard consistent with the pattern used elsewhere in the same file
(e.g., line 480).
Fixes downstream failure in moderneinc/rewrite-spring.1 parent 18df73f commit a636e5c
1 file changed
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
586 | 589 | | |
587 | 590 | | |
588 | 591 | | |
| |||
0 commit comments