What happens is this:
1. App throws an exception.
2. Some wrapper catches the exception an calls
clojure.stacktrace/print-cause-trace.
3. clojure.stacktrace/print-trace-element tries to match
StackTraceElement.getClass against a regex.
4. StackTraceElement.getClass returns null, so a NullPointerException
gets thrown, totally obscuring the original exception.
Now, step 4 is supposedly impossible, according to the Javadocs for
StackTraceElement. But maybe in certain strange cases it can happen.
A simple patch (attached) will fix this.
-S