Merge 1267ec9e1336bbe8ab690f6afea4089799907bf9 on remote branch
Change-Id: Ib9e8be7f4e22daf8753f7a642e8a5158e70b6c12
diff --git a/fmapp2/src/com/caf/hc_utils/A2dpDeviceStatus.java b/fmapp2/src/com/caf/hc_utils/A2dpDeviceStatus.java
index 7f44278..a0cae6e 100644
--- a/fmapp2/src/com/caf/hc_utils/A2dpDeviceStatus.java
+++ b/fmapp2/src/com/caf/hc_utils/A2dpDeviceStatus.java
@@ -95,8 +95,10 @@
public A2dpDeviceStatus(Context mContext) {
mAdapter = BluetoothAdapter.getDefaultAdapter();
- mAdapter.getProfileProxy(mContext, mProfileListener,
- BluetoothProfile.A2DP);
+ if(mAdapter != null) {
+ mAdapter.getProfileProxy(mContext, mProfileListener,
+ BluetoothProfile.A2DP);
+ }
}
private BluetoothProfile.ServiceListener mProfileListener =
new BluetoothProfile.ServiceListener() {