This is an automated email from the ASF dual-hosted git repository.
cstamas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new 71bb3bdf95 [MNG-8121] Fix NPE in metadata merge (#1509)
71bb3bdf95 is described below
commit 71bb3bdf95cfe849ccfcd48d986ce1bcb8891c39
Author: Tamas Cservenak <[email protected]>
AuthorDate: Wed May 15 19:32:27 2024 +0200
[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
---
api/maven-api-metadata/src/main/mdo/metadata.mdo | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/api/maven-api-metadata/src/main/mdo/metadata.mdo
b/api/maven-api-metadata/src/main/mdo/metadata.mdo
index 509e51aeb9..fe9436046e 100644
--- a/api/maven-api-metadata/src/main/mdo/metadata.mdo
+++ b/api/maven-api-metadata/src/main/mdo/metadata.mdo
@@ -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;