domdomegg opened a new pull request #320:
URL: https://github.com/apache/maven-surefire/pull/320


   JIRA: https://issues.apache.org/jira/browse/SUREFIRE-1851
   
   SmartStackTraceParser is used in various places to parse throwables. 
However, if the throwable stack trace is null it will throw an NPE itself. This 
can cause test runners to fail in unexpected ways, which in the worst case can 
lead to false success test results and passing builds despite the test actually 
failing.
   
   An exception with a null stacktrace sounds odd, but is easy to do by mocking 
an exception with frameworks like Mockito. While people probably shouldn't be 
mocking exceptions, it definitely can and does happen. Can be reproduced with 
https://github.com/domdomegg/surefire-1851-demo
   
   This is my first PR to the Apache project, apologies if I've gotten anything 
wrong - I've tried to follow the contributing guidelines as best I can, but do 
let me know if something needs changing :)


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to