PR: MNG-1721

Fixing NPE when error parameter is null.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@350275 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2005-12-01 17:04:09 +00:00
parent 2177e3763e
commit 3230df32bf
1 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,11 @@ public final class DiagnosisUtils
public static void appendRootCauseIfPresentAndUnique( Throwable error, StringBuffer message,
boolean includeTypeInfo )
{
if ( error == null )
{
return;
}
Throwable root = getRootCause( error );
if ( root != null && !root.equals( error ) )