mirror of https://github.com/apache/archiva.git
[MRM-1204] - org.apache.maven.archiva.repository.project.ProjectModelMerge.merge throws NPE
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@803840 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
11135fe668
commit
1c301353ac
|
@ -337,7 +337,12 @@ public class ProjectModelMerge
|
||||||
while ( keys.hasMoreElements() )
|
while ( keys.hasMoreElements() )
|
||||||
{
|
{
|
||||||
String key = (String) keys.nextElement();
|
String key = (String) keys.nextElement();
|
||||||
merged.put( key, merge( mainProperties.getProperty( key ), parentProperties.getProperty( key ) ) );
|
String value = merge( mainProperties.getProperty( key ), parentProperties.getProperty( key ) );
|
||||||
|
|
||||||
|
if ( value != null )
|
||||||
|
{
|
||||||
|
merged.put( key, value );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return merged;
|
return merged;
|
||||||
|
|
Loading…
Reference in New Issue