Skip to content

Commit

Permalink
Merge pull request #644 from usev6/NPE_baghash
Browse files Browse the repository at this point in the history
Avoid NullPointerException in S02-types/baghash.t
  • Loading branch information
lizmat committed Dec 19, 2015
2 parents 96e407c + 97020cb commit 8456169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Pair.pm
Expand Up @@ -25,7 +25,7 @@ my class Pair does Associative {
$!value.ACCEPTS(%h.AT-KEY($!key));
}
multi method ACCEPTS(Pair:D: Pair:D $p) {
$!value.ACCEPTS(nqp::getattr($p,Pair,'$!value'));
$!value.ACCEPTS(nqp::getattr(nqp::decont($p),Pair,'$!value'));
}
multi method ACCEPTS(Pair:D: Mu $other) {
$other."$!key"().Bool === $!value.Bool
Expand Down

0 comments on commit 8456169

Please sign in to comment.