Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/org/jruby/RubyException.java
Original file line number Diff line number Diff line change
@@ -208,6 +208,8 @@ private void setBacktrace(IRubyObject obj) {

@JRubyMethod(omit = true)
public IRubyObject backtrace_locations(ThreadContext context) {
if (backtraceData == null) return context.nil; // Exception generated explicitly without a backtrace.

Ruby runtime = context.runtime;
RubyStackTraceElement[] elements = backtraceData.getBacktrace(runtime);

0 comments on commit b21c1d0

Please sign in to comment.