mirror of https://github.com/apache/maven.git
[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
This commit is contained in:
parent
558ae8a924
commit
73bc6caec7
|
@ -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…
Reference in New Issue