Skip to content

Commit

Permalink
[MNG-8121] Fix NPE in metadata merge (#1508)
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 committed May 15, 2024
1 parent 558ae8a commit 73bc6ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maven-repository-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 73bc6ca

Please sign in to comment.