Clojure

NullPointerException in clojure.stacktrace

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Backlog
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Description

See http://groups.google.com/group/clojure-dev/browse_thread/thread/f4157c68df730bd9

  • clojure.stacktrace/print-trace-element tries to match StackTraceElement.getClass against a regex.
  • StackTraceElement.getClass returns null, so a NullPointerException gets thrown, totally obscuring the original exception.

Now, the null is supposedly impossible, according to the Javadocs for StackTraceElement. But in some rare cases it seems to happen.

Activity

Hide
Assembla Importer added a comment -

stuart.sierra said: [file:c_8vnCZyyr37CfeJe5cbLA]: patch with ticket ref #

Show
Assembla Importer added a comment - stuart.sierra said: [file:c_8vnCZyyr37CfeJe5cbLA]: patch with ticket ref #
Hide
Stuart Halloway added a comment -

This may be moot given the work being done to unify all the different stacktraces, but as long as this code is still out there, it seems worth preventing occasional cryptic failures!

Show
Stuart Halloway added a comment - This may be moot given the work being done to unify all the different stacktraces, but as long as this code is still out there, it seems worth preventing occasional cryptic failures!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: