remove instanceof NullValues fixes #1313
This commit is contained in:
1 parent
5c4e18ead1
commit
695b569977
11 files changed
+35
-30
No files matched your search
@@ -241,8 +241,8 @@ public class Sys {
|
||||
|
||||
double result;
|
||||
|
||||
if (z instanceof NullValue)
|
||||
if (y instanceof NullValue)
|
||||
if (z.isNull())
|
||||
if (y.isNull())
|
||||
result = sampler.sample1d(NumericValue.asNumber(x).getDouble());
|
||||
else
|
||||
result = sampler.sample2d(NumericValue.asNumber(x).getDouble(), NumericValue.asNumber(y).getDouble());
|
||||
@@ -279,7 +279,7 @@ public class Sys {
|
||||
}
|
||||
double result;
|
||||
|
||||
if (z instanceof NullValue)
|
||||
if (z.isNull())
|
||||
result = sampler.sample2d(NumericValue.asNumber(x).getDouble(), NumericValue.asNumber(y).getDouble());
|
||||
else
|
||||
result = sampler.sample3d(
|
||||
|
||||
Reference in new issue
Block a user