Commit e3980bd
Fix gh-11740: Add missing null check in validateProfileId()
The validateProfileId() method was missing a null check before calling
validProfileIds.contains(id). Since validProfileIds uses
ConcurrentHashMap.newKeySet() which doesn't allow null keys, a null
profile ID would cause a NullPointerException instead of a proper
validation error.
This makes validateProfileId() consistent with validateCoordinateId()
which already has the null check.
Fixes #11740
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 71bd10f commit e3980bd
File tree
1 file changed
+1
-1
lines changed- impl/maven-impl/src/main/java/org/apache/maven/impl/model
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1792 | 1792 | | |
1793 | 1793 | | |
1794 | 1794 | | |
1795 | | - | |
| 1795 | + | |
1796 | 1796 | | |
1797 | 1797 | | |
1798 | 1798 | | |
| |||
0 commit comments