From: Priya Kohli Date: Wed, 8 May 2019 10:06:41 +0000 (+0530) Subject: [TBT][Push][NonACR][TFDF-1938, PBAP All Vcards : tbtcoreapp crash on selecting PASS... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c71efb68df9920fc47ba25085de9b77f03c77ea5;p=test%2Ftct%2Fnative%2Fbehavior.git [TBT][Push][NonACR][TFDF-1938, PBAP All Vcards : tbtcoreapp crash on selecting PASS/FAIL] Change-Id: I0e769af2f2748a53883713c6d669fe095aaa79fd Signed-off-by: Priya Kohli --- diff --git a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk index 547e392..88c9b3a 100755 Binary files a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk and b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk differ diff --git a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk index fb6d343..1e8fa1f 100755 Binary files a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk and b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk differ diff --git a/tbtcoreapp/src/view/tbt-bluetooth-view.c b/tbtcoreapp/src/view/tbt-bluetooth-view.c index 0606318..f9baee8 100644 --- a/tbtcoreapp/src/view/tbt-bluetooth-view.c +++ b/tbtcoreapp/src/view/tbt-bluetooth-view.c @@ -2817,8 +2817,11 @@ static void _app_destroy_cb(void* this) //PBAP deinitialization code goes here result = bt_pbap_client_unset_connection_state_changed_cb(); RETM_IF(result != BT_ERROR_NONE, "bt_pbap_client_unset_connection_state_changed_cb fail > Error = %s", get_bluetooth_error(result)); - result = bt_pbap_client_disconnect(view->selected_device_info->remote_address); - RETM_IF(result != BT_ERROR_NONE, "bt_pbap_client_disconnect fail > Error = %s", get_bluetooth_error(result)); + if(view->selected_device_info && view->selected_device_info->remote_address) + { + result = bt_pbap_client_disconnect(view->selected_device_info->remote_address); + RETM_IF(result != BT_ERROR_NONE, "bt_pbap_client_disconnect fail > Error = %s", get_bluetooth_error(result)); + } result = bt_pbap_client_deinitialize(); RETM_IF(result != BT_ERROR_NONE, "bt_pbap_client_deinitialize fail > Error = %s", get_bluetooth_error(result)); }