commit | 5a609994985e8c28ae91c11cac63bbaedfc9692f | [log] [tgz] |
---|---|---|
author | palaych <palaychm@yandex.ru> | Tue Apr 20 20:48:06 2021 +0000 |
committer | palaych <palaychm@yandex.ru> | Tue Apr 20 20:48:06 2021 +0000 |
tree | 214e070356fec0f0b3942e089f6ee29fb2f53581 | |
parent | c27bb3a32b066cadb8bf5a0d3d9ee51e1413e29a [diff] | |
parent | 0754cb3af2cfbf1aa097f6ceb77ce35bf1042bfb [diff] |
Merge tag 'LA.QSSI.11.0.r1-11400-qssi.0' of https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/fm-commonsys into HEAD "LA.QSSI.11.0.r1-11400-qssi.0" * tag 'LA.QSSI.11.0.r1-11400-qssi.0' of https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/fm-commonsys: FM: add null check for BluetoothAdapter instance Change-Id: I578c6073b24ea1f113092997b4c2909ed91d2b48
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() {