Skip to content

Commit

Permalink
[MNG-8121] Fix NPE in metadata merge (#1509)
Browse files Browse the repository at this point in the history
There is an NPE if existing metadata due bug of nx-staging-m-p had no prefix present.

---

https://issues.apache.org/jira/browse/MNG-8121
  • Loading branch information
cstamas authored May 15, 2024
1 parent 9acbed7 commit 71bb3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/maven-api-metadata/src/main/mdo/metadata.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ under the License.

for ( Plugin preExisting : getPlugins() )
{
if ( preExisting.getPrefix().equals( plugin.getPrefix() ) )
if ( java.util.Objects.equals( preExisting.getPrefix(), plugin.getPrefix() ) )
{
found = true;
break;
Expand Down

0 comments on commit 71bb3bd

Please sign in to comment.