summaryrefslogtreecommitdiffstats
path: root/java/jni/direct_bt/DBTNativeDownlink.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'java/jni/direct_bt/DBTNativeDownlink.cxx')
-rw-r--r--java/jni/direct_bt/DBTNativeDownlink.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/java/jni/direct_bt/DBTNativeDownlink.cxx b/java/jni/direct_bt/DBTNativeDownlink.cxx
index 77afbd7f..934bf0ca 100644
--- a/java/jni/direct_bt/DBTNativeDownlink.cxx
+++ b/java/jni/direct_bt/DBTNativeDownlink.cxx
@@ -40,9 +40,6 @@ void Java_direct_1bt_tinyb_DBTNativeDownlink_initNativeJavaObject(JNIEnv *env, j
{
try {
JavaUplink *javaUplink = castInstance<JavaUplink>(nativeInstance);
- if( nullptr == javaUplink ) {
- throw InternalError("NativeInstance JavaUplink is NULL", E_FILE_LINE);
- }
jclass javaClazz = search_class(env, obj);
java_exception_check_and_throw(env, E_FILE_LINE);
if( nullptr == javaClazz ) {
@@ -67,9 +64,6 @@ void Java_direct_1bt_tinyb_DBTNativeDownlink_deleteNativeJavaObject(JNIEnv *env,
(void)obj;
try {
JavaUplink *javaUplink = castInstance<JavaUplink>(nativeInstance);
- if( nullptr == javaUplink ) {
- throw InternalError("NativeInstance JavaUplink is NULL", E_FILE_LINE);
- }
DBG_PRINT("Java_direct_1bt_tinyb_DBTNativeDownlink_deleteNativeJavaObject %p -> %s", javaUplink, javaUplink->toString().c_str());
javaUplink->setJavaObject(nullptr);
} catch(...) {