summaryrefslogtreecommitdiffstats
path: root/pxp-monitor
diff options
context:
space:
mode:
authorSwami Dhyan Anurag <dhyananurag@codeaurora.org>2014-10-13 11:12:06 -0700
committerSwami Dhyan Anurag <dhyananurag@codeaurora.org>2014-10-13 11:12:06 -0700
commitb6a3144a8c1c455a9b212278a6c6cc7fd75d8e0c (patch)
tree693f8f4c05d4dfae0ad74e9057239da014df1af5 /pxp-monitor
parentde28002fcc87a247ef4c60a77d1802c76b594ac7 (diff)
downloadandroid_packages_apps_BluetoothExt-b6a3144a8c1c455a9b212278a6c6cc7fd75d8e0c.tar.gz
android_packages_apps_BluetoothExt-b6a3144a8c1c455a9b212278a6c6cc7fd75d8e0c.tar.bz2
android_packages_apps_BluetoothExt-b6a3144a8c1c455a9b212278a6c6cc7fd75d8e0c.zip
Bluetooth: Pxpmonitor DeviceActivity Crash When HOGP Device Connected
DeviceActivity in Pxpmonitor is destoryed and restarted by Android framework on change of configuration. During restart there is delay in getting the Service Connection status which return the Proxy Service Handle on successful connection. This Proxy Service handle was deferenced without null check. Added check to deference proxyService handle only when it is available. Change-Id: Ic67549e34289181bafbdae5d3a98113177aa9981 CRs-Fixed: 738143
Diffstat (limited to 'pxp-monitor')
-rw-r--r--pxp-monitor/src/org/codeaurora/bluetooth/pxpmonitor/DeviceActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/pxp-monitor/src/org/codeaurora/bluetooth/pxpmonitor/DeviceActivity.java b/pxp-monitor/src/org/codeaurora/bluetooth/pxpmonitor/DeviceActivity.java
index 98163fa..09f47ff 100644
--- a/pxp-monitor/src/org/codeaurora/bluetooth/pxpmonitor/DeviceActivity.java
+++ b/pxp-monitor/src/org/codeaurora/bluetooth/pxpmonitor/DeviceActivity.java
@@ -306,7 +306,7 @@ public class DeviceActivity extends Activity {
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.device, menu);
- if (!mPxpServiceProxy.isPropertiesSet(mLeDevice)) {
+ if (null == mPxpServiceProxy || !mPxpServiceProxy.isPropertiesSet(mLeDevice)) {
return false;
}