Skip to content

Commit

Permalink
nqp::iscont should not blow up over a null value.
Browse files Browse the repository at this point in the history
This fixes a broken case of .clone that the subscripting changes in
Rakudo hit. Thus, this fixes a more general issue.
  • Loading branch information
jnthn committed Sep 25, 2013
1 parent ec8898f commit 6b4b034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -2573,7 +2573,7 @@ public static SixModelObject setcontspec(SixModelObject obj, String confname, Si
return obj;
}
public static long iscont(SixModelObject obj) {
return obj.st.ContainerSpec == null ? 0 : 1;
return obj == null || obj.st.ContainerSpec == null ? 0 : 1;
}
public static SixModelObject decont(SixModelObject obj, ThreadContext tc) {
if (obj == null)
Expand Down

0 comments on commit 6b4b034

Please sign in to comment.