michael-o commented on code in PR #716: URL: https://github.com/apache/maven-surefire/pull/716#discussion_r1628075126
########## maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java: ########## @@ -451,7 +451,9 @@ private static void getTestProblems( String type = delimiter == -1 ? stackTrace : stackTrace.substring(0, delimiter); ppw.addAttribute("type", type); } else { - ppw.addAttribute("type", new StringTokenizer(stackTrace).nextToken()); + ppw.addAttribute( + "type", + isBlank(stackTrace) ? "UndefinedException" : new StringTokenizer(stackTrace).nextToken()); Review Comment: Let me then prepare a PR with that change and you can build up on it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org