Skip to content

Commit cb0214a

Browse files
committed
[Truffle] Avoid null values when inspecting RubyModule from Java.
1 parent 209777f commit cb0214a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

truffle/src/main/java/org/jruby/truffle/runtime/core/RubyModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public boolean hasName() {
363363

364364
@Override
365365
public String toString() {
366-
return super.toString() + "(" + name + ")";
366+
return super.toString() + "(" + getName() + ")";
367367
}
368368

369369
public void newVersion() {

0 commit comments

Comments
 (0)