Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #450 from usev6/jvm_npe_signature_deftype
Avoid NullPointerException on JVM
  • Loading branch information
lizmat committed Jun 28, 2015
2 parents 367b581 + fc6db98 commit d0176db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Signature.pm
Expand Up @@ -116,7 +116,7 @@ my class Signature { # declared in BOOTSTRAP
}

method !deftype(Signature:D:) {
$!code ~~ Routine ?? Any !! Mu
!nqp::isnull($!code) && $!code ~~ Routine ?? Any !! Mu
}

multi method perl(Signature:D:) {
Expand Down

0 comments on commit d0176db

Please sign in to comment.