You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ag...@apache.org on 2014/03/09 20:42:14 UTC

[10/11] git commit: [SUREFIRE-1041] Do not crash with NPE in case a JUnit runner fails Submitted by: Dan Fabulich

[SUREFIRE-1041] Do not crash with NPE in case a JUnit runner fails
Submitted by: Dan Fabulich

o Applied without changes


Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/ec46bafc
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/ec46bafc
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/ec46bafc

Branch: refs/heads/master
Commit: ec46bafca72b1b8b243a48d47023d1e750da08f5
Parents: a1d86c7
Author: Andreas Gudian <ag...@apache.org>
Authored: Sat Mar 8 20:53:35 2014 +0100
Committer: Andreas Gudian <ag...@apache.org>
Committed: Sun Mar 9 20:18:58 2014 +0100

----------------------------------------------------------------------
 .../java/org/apache/maven/surefire/report/SimpleReportEntry.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/ec46bafc/surefire-api/src/main/java/org/apache/maven/surefire/report/SimpleReportEntry.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/report/SimpleReportEntry.java b/surefire-api/src/main/java/org/apache/maven/surefire/report/SimpleReportEntry.java
index ca33a5f..2229815 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/report/SimpleReportEntry.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/report/SimpleReportEntry.java
@@ -55,11 +55,11 @@ public class SimpleReportEntry
     {
         if ( source == null )
         {
-            throw new NullPointerException( "source is null" );
+            source = "null";
         }
         if ( name == null )
         {
-            throw new NullPointerException( "name is null" );
+            name = "null";
         }
 
         this.source = source;