diff options
Diffstat (limited to 'java/jni/BluetoothObject.cxx')
-rw-r--r-- | java/jni/BluetoothObject.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/jni/BluetoothObject.cxx b/java/jni/BluetoothObject.cxx index 03029cca..9c2a8f3c 100644 --- a/java/jni/BluetoothObject.cxx +++ b/java/jni/BluetoothObject.cxx @@ -51,6 +51,10 @@ void Java_tinyb_BluetoothObject_delete(JNIEnv *env, jobject obj) jboolean Java_tinyb_BluetoothObject_operatorEqual(JNIEnv *env, jobject obj, jobject other) { + if (!other) + { + return JNI_FALSE; + } BluetoothObject *obj_b = getInstance<BluetoothObject>(env, obj); BluetoothObject *obj_other = getInstance<BluetoothObject>(env, other); |