Skip to content

Commit 73bc6ca

Browse files
authored
[MNG-8121] Fix NPE in metadata merge (#1508)
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
1 parent 558ae8a commit 73bc6ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maven-repository-metadata/src/main/mdo/metadata.mdo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ under the License.
100100

101101
for ( Plugin preExisting : getPlugins() )
102102
{
103-
if ( preExisting.getPrefix().equals( plugin.getPrefix() ) )
103+
if ( java.util.Objects.equals( preExisting.getPrefix(), plugin.getPrefix() ) )
104104
{
105105
found = true;
106106
break;

0 commit comments

Comments
 (0)