38542477be2810926b6187f7f42159929a6e8588 |
|
24-Jan-2015 |
Krishnan Mahadevan <Krishnan.mahadevan1978@gmail.com> |
Fix NPE in Reporter.log() Root cause : Changes to Reporter class to use hasCode() of TestResult : https://github.com/cbeust/testng/commit/c9a91722631f3b2f9bcc5a300e7a84c61cd4764f Fixed this by persisting all the orphaned output (output which is not associated with any TestResult) into a temporary ThreadLocal ArrayList and then associated it back to a TestResult once we found a valid TestResult object for the current Thread. * Added a null check in getOutput() to prevent NPE. * Added a unit test.
/external/testng/src/test/java/test/reports/ReporterTest.java
|