Skip to content

Commit f39a9eb

Browse files
committedDec 14, 2017
Simple regression in recent changes. Some trace instr will have a null name.
Guard against it since it is a normal value.
1 parent 80f1f6e commit f39a9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/src/main/java/org/jruby/ir/instructions/TraceInstr.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public RubyEvent getEvent() {
4242
}
4343

4444
public String getName() {
45-
return StringSupport.byteListAsString(name);
45+
return name == null ? null : StringSupport.byteListAsString(name);
4646
}
4747

4848
public String getFilename() {

0 commit comments

Comments
 (0)
Please sign in to comment.