diff options
Diffstat (limited to 'jni/com_android_bluetooth_hdp.cpp')
-rw-r--r-- | jni/com_android_bluetooth_hdp.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jni/com_android_bluetooth_hdp.cpp b/jni/com_android_bluetooth_hdp.cpp index 81c8312c1..8556e6a89 100644 --- a/jni/com_android_bluetooth_hdp.cpp +++ b/jni/com_android_bluetooth_hdp.cpp @@ -195,7 +195,10 @@ static jint registerHealthAppNative(JNIEnv *env, jobject object, jint data_type, bthl_reg_param_t reg_param; int app_id; - if (!sBluetoothHdpInterface) return NULL; + if (!sBluetoothHdpInterface) { + ALOGE("Failed register health app. No Bluetooth Health Interface available"); + return -1; + } mdep_cfg.mdep_role = (bthl_mdep_role_t) role; mdep_cfg.data_type = data_type; |