Anders Wallgren created SUREFIRE-1759: -----------------------------------------
Summary: NullPointerException from RunEntryStatisticsMap#serialize when there's a class-level @Ignore annotation Key: SUREFIRE-1759 URL: https://issues.apache.org/jira/browse/SUREFIRE-1759 Project: Maven Surefire Issue Type: Bug Affects Versions: 3.0.0-M4 Reporter: Anders Wallgren When a class with a class-level @Ignore annotation is run, the output looks like this: {quote}1,0,com.electriccloud.commander.agent.config.AgentConfigurationIT, {quote} {{This causes a NullPointerException when running in forked mode:}} {{{{[ERROR] Caused by: java.lang.NullPointerException}}}} {{ {{[ERROR] at java.base/java.io.StringReader.<init>(StringReader.java:50)}}}} {{ {{[ERROR] at java.base/java.util.Scanner.<init>(Scanner.java:766)}}}} {{ {{[ERROR] at org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap.serialize(RunEntryStatisticsMap.java:160)}}}} {{ {{[ERROR] at org.apache.maven.plugin.surefire.runorder.StatisticsReporter.testSetCompleted(StatisticsReporter.java:56)}}}} {{ {{[ERROR] at org.apache.maven.plugin.surefire.report.TestSetRunListener.testSetCompleted(TestSetRunListener.java:194)}}}} {{ {{[ERROR] at org.apache.maven.surefire.junitcore.NonConcurrentRunListener.testRunFinished(NonConcurrentRunListener.java:176)}}}} {{ {{[ERROR] at org.junit.runner.notification.SynchronizedRunListener.testRunFinished(SynchronizedRunListener.java:42)}}}} {{ {{[ERROR] at org.junit.runner.notification.RunNotifier$2.notifyListener(RunNotifier.java:103)}}}} {{ {{[ERROR] at org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72)}}}} {{ {{[ERROR] at org.junit.runner.notification.RunNotifier.fireTestRunFinished(RunNotifier.java:100)}}}} {{ {{[ERROR] at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:63)}}}} {{ {{[ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)}}}} {{ {{[ERROR] ... 37 more}}}} -- This message was sent by Atlassian Jira (v8.3.4#803005)