[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:
Tamas Cservenak 2024-05-15 19:32:37 +02:00 committed by GitHub
parent 558ae8a924
commit 73bc6caec7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;