changeset 390:b64aaf61b6be

Runners: avoid NPE when auxiliary data is null.
author shade
date Wed, 08 Mar 2017 20:52:43 +0100
parents 87f7e65cf474
children 9849fb5331b5
files jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/ReportUtils.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/ReportUtils.java	Mon Mar 06 20:28:47 2017 +0100
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/ReportUtils.java	Wed Mar 08 20:52:43 2017 +0100
@@ -168,7 +168,7 @@
     }
 
     private static boolean skipMessage(String data) {
-        if (data.startsWith("Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox"))
+        if (data != null && data.startsWith("Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox"))
             return true;
 
         return false;