Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix nqp::defined(...) bug.
Wins a few more tests.
  • Loading branch information
jnthn committed Feb 28, 2013
1 parent 4337905 commit e58bbdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -1419,7 +1419,7 @@ public static SixModelObject clone(SixModelObject obj, ThreadContext tc) {
return obj.clone(tc);
}
public static long isconcrete(SixModelObject obj, ThreadContext tc) {
return obj instanceof TypeObject ? 0 : 1;
return obj == null || obj instanceof TypeObject ? 0 : 1;
}
public static SixModelObject knowhow(ThreadContext tc) {
return tc.gc.KnowHOW;
Expand Down

0 comments on commit e58bbdb

Please sign in to comment.