remove instanceof NullValues fixes #1313

This commit is contained in:
gnembon committed 2022-02-06 00:18:42 +01:00
1 parent 5c4e18ead1
commit 695b569977
11 files changed
+35 -30

No files matched your search

@@ -51,7 +51,7 @@ public class BlockArgument extends Argument
{
Value v1 = params.next();
//add conditional from string name
if (optional && v1 instanceof NullValue)
if (optional && v1.isNull())
{
return new BlockArgument(null, 1 + offset);
}
@@ -105,7 +105,7 @@ public class BlockArgument extends Argument
{
Value v1 = params.get(0 + offset);
//add conditional from string name
if (optional && v1 instanceof NullValue)
if (optional && v1.isNull())
{
return new BlockArgument(null, 1+offset);
}