Skip to content

Commit

Permalink
Fix broken JVM build
Browse files Browse the repository at this point in the history
Null pointer exception again.
  • Loading branch information
vrurg committed Dec 23, 2021
1 parent 572c08c commit 717b568
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Perl6/Optimizer.nqp
Expand Up @@ -1188,7 +1188,8 @@ my class Operand {

method value-type() {
self.value-analyze;
nqp::what($!value)
# We need this ternary for JVM where otherwise it may throw on VMNull in $!value
nqp::isnull($!value) ?? nqp::null() !! nqp::what($!value)
}

method value-kind() {
Expand Down

0 comments on commit 717b568

Please sign in to comment.