diff --git a/client/src/com/aerospike/client/util/Util.java b/client/src/com/aerospike/client/util/Util.java index 2271a5a60..d905b3719 100644 --- a/client/src/com/aerospike/client/util/Util.java +++ b/client/src/com/aerospike/client/util/Util.java @@ -216,7 +216,7 @@ public static byte toByte(Object obj) { */ public static boolean toBoolean(Object obj) { // The server always returns booleans as longs, so get long and convert. - return (toLong(obj) != 0) ? true : false; + return (obj == null) ? false : ((Long)obj).longValue() != 0L; } /**