fixed incorrect recognition of some NULL objects

This commit is contained in:
gnembon committed 2020-09-28 22:17:29 -03:00
1 parent 9b35c19bea
commit d5ebe5361c
4 files changed
+5 -6

No files matched your search

@@ -97,7 +97,7 @@ public class ValueConversions
public static Value fromTimedMemory(Entity e, long expiry, Object v)
{
Value ret = fromEntityMemory(e, v);
if (ret == Value.NULL || expiry == Long.MAX_VALUE) return ret;
if (ret.isNull() || expiry == Long.MAX_VALUE) return ret;
return ListValue.of(ret, new NumericValue(expiry));
}