diff options
author | Smriti Gupta <smritig@codeaurora.org> | 2014-11-18 13:10:30 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-11-18 02:04:19 -0800 |
commit | 30d8c6ff20890779c8127e499aec2c137732ab0b (patch) | |
tree | c55da4ce5c7ecf81a25b2dab75c8dface2c74ca4 | |
parent | cb37db0af281016d3a4d83bc64b378178d7f65cc (diff) | |
download | android_packages_apps_BluetoothExt-30d8c6ff20890779c8127e499aec2c137732ab0b.tar.gz android_packages_apps_BluetoothExt-30d8c6ff20890779c8127e499aec2c137732ab0b.tar.bz2 android_packages_apps_BluetoothExt-30d8c6ff20890779c8127e499aec2c137732ab0b.zip |
PBAP C: Fix klocwork issue
This change will fix the klocwork issue coming with respect to
BluetoothPbapTestActivity.
Change-Id: Iffc45dc24796e718fc75c1d2c55743c871dd9839
CRs-fixed: 758578
-rw-r--r-- | bttestapp/src/org/codeaurora/bluetooth/bttestapp/ServicesFragment.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bttestapp/src/org/codeaurora/bluetooth/bttestapp/ServicesFragment.java b/bttestapp/src/org/codeaurora/bluetooth/bttestapp/ServicesFragment.java index f73e435..b9af571 100644 --- a/bttestapp/src/org/codeaurora/bluetooth/bttestapp/ServicesFragment.java +++ b/bttestapp/src/org/codeaurora/bluetooth/bttestapp/ServicesFragment.java @@ -461,10 +461,12 @@ public class ServicesFragment extends ListFragment { case PBAP: if (isChecked) { - mActivity.mProfileService.getPbapClient().connect(); + if (mActivity.mProfileService.getPbapClient()!= null) + mActivity.mProfileService.getPbapClient().connect(); buttonView.setEnabled(false); } else { - mActivity.mProfileService.getPbapClient().disconnect(); + if (mActivity.mProfileService.getPbapClient()!= null) + mActivity.mProfileService.getPbapClient().disconnect(); buttonView.setEnabled(false); } break; |