db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r377245 - /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/util/ResultSummary.java
Date Sun, 12 Feb 2006 21:36:24 GMT
Author: clr
Date: Sun Feb 12 13:36:22 2006
New Revision: 377245

URL: http://svn.apache.org/viewcvs?rev=377245&view=rev
Log:
JDO-303 NPE if no tests were run.

Modified:
    db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/util/ResultSummary.java

Modified: db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/util/ResultSummary.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/util/ResultSummary.java?rev=377245&r1=377244&r2=377245&view=diff
==============================================================================
--- db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/util/ResultSummary.java (original)
+++ db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/util/ResultSummary.java Sun Feb 12 13:36:22
2006
@@ -70,7 +70,9 @@
         String directory = args[0] + File.separator;
         ResultSummary resultSummary = ResultSummary.load(directory);
         String newLine = System.getProperty("line.separator");
-        String resultMessage = resultSummary.toString();
+        String resultMessage = resultSummary != null ? 
+            resultSummary.toString() :
+            "No tests were run.";
         String message = "-------" + newLine + resultMessage;
         appendTCKResultMessage(directory, message);
         System.out.println(resultMessage);



Mime
View raw message