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