mirror of
https://github.com/apache/maven.git
synced 2025-02-15 06:26:19 +00:00
[MNG-8121] Fix NPE in metadata merge (#1509)
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
This commit is contained in:
parent
9acbed7d4f
commit
71bb3bdf95
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user