Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Missing null check.
Fixes at least S32-array/delete.t.
  • Loading branch information
jnthn committed Jun 30, 2013
1 parent 3fa1ed5 commit 718f45a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/jvm/runtime/org/perl6/rakudo/Ops.java
Expand Up @@ -362,7 +362,7 @@ public static SixModelObject p6store(SixModelObject cont, SixModelObject value,

public static SixModelObject p6decontrv(SixModelObject cont, ThreadContext tc) {
GlobalExt gcx = key.getGC(tc);
if (isRWScalar(tc, gcx, cont)) {
if (cont != null && isRWScalar(tc, gcx, cont)) {
tc.curFrame.codeRef.codeObject.get_attribute_native(tc, gcx.Routine, "$!rw", HINT_ROUTINE_RW);
if (tc.native_i == 0) {
/* Recontainerize to RO. */
Expand Down

0 comments on commit 718f45a

Please sign in to comment.