[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:
Tamas Cservenak 2024-05-15 19:32:27 +02:00 committed by GitHub
parent 9acbed7d4f
commit 71bb3bdf95
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;