Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -234,7 +234,7 @@ public static Object lookupClassVariable(RubyModule module, String name) {
// If singleton class, check attached module.
if (module instanceof RubyClass) {
RubyClass klass = (RubyClass) module;
if (klass.isSingleton() && klass.getAttached() instanceof RubyModule) {
if (klass.isSingleton() && klass.getAttached() != null) {
module = klass.getAttached();

value = module.getClassVariables().get(name);

0 comments on commit 1602534

Please sign in to comment.