mirror of https://github.com/apache/maven.git
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:
parent
2177e3763e
commit
3230df32bf
|
@ -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 ) )
|
||||
|
|
Loading…
Reference in New Issue