From fc6db9880fa7486b05933d9af3d418ee223d5ac4 Mon Sep 17 00:00:00 2001 From: usev6 Date: Sun, 28 Jun 2015 18:26:04 +0200 Subject: [PATCH] Avoid NullPointerException on JVM in S06-signature/introspection.t --- src/core/Signature.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Signature.pm b/src/core/Signature.pm index 2bbd7b3c20d..97986b03209 100644 --- a/src/core/Signature.pm +++ b/src/core/Signature.pm @@ -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:) {