[MNG-5721] Possible NullPointerException in org.apache.maven.repository.MetadataResolutionResult

Signed-off-by: Michael Osipov <michaelo@apache.org>
This commit is contained in:
Martin Schäf 2015-10-10 21:25:57 +02:00 committed by Michael Osipov
parent d556da8434
commit d1dc63844f
1 changed files with 1 additions and 4 deletions

View File

@ -232,10 +232,7 @@ public boolean hasErrorArtifactExceptions()
public MetadataResolutionResult addError( Exception e ) public MetadataResolutionResult addError( Exception e )
{ {
if ( exceptions == null ) exceptions = initList( exceptions );
{
initList( exceptions );
}
exceptions.add( e ); exceptions.add( e );