DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13465>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13465

JUnit Task's PlainJUnitResultFormatter throws NPE on addError()

           Summary: JUnit Task's PlainJUnitResultFormatter throws NPE on
                    addError()
           Product: Ant
           Version: 1.5.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Optional Tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Sample stack trace:

    [junit] Exception in thread "main" java.lang.NullPointerException
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter.endTest(PlainJUnitResultFormatter.java:208)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter.formatError(PlainJUnitResultFormatter.java:245)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter.addError(PlainJUnitResultFormatter.java:239)
    [junit]     at junit.framework.TestResult.addError(TestResult.java:36)
    [junit]     at junit.framework.TestResult.runProtected(TestResult.java:133)

The problem is that 'l' at line 207 can be null if the error was thrown during
startup.  See XMLJUnitResultFormatter for a sample fix.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to