Skip to content


[Truffle] Go back to null check since FindBugs does not like it.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Mar 9, 2015
1 parent 03da281 commit 1602534
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1602534

Please sign in to comment.