summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2014-11-19 18:51:35 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2014-11-19 18:51:35 -0800
commit9c72953a7c9a2901b867195e411be1b10f878f21 (patch)
tree7f3cf477fa73ba2eba30ff17e10fa339fb163715
parentd93cd0e91f1de225c1c71aa93aa30c486b0db795 (diff)
parent272bbcf1462fbb16fd5437d13ce35987a129b784 (diff)
downloadandroid_packages_apps_BluetoothExt-9c72953a7c9a2901b867195e411be1b10f878f21.tar.gz
android_packages_apps_BluetoothExt-9c72953a7c9a2901b867195e411be1b10f878f21.tar.bz2
android_packages_apps_BluetoothExt-9c72953a7c9a2901b867195e411be1b10f878f21.zip
Merge "SAP: Klocwork issue"
-rw-r--r--src/org/codeaurora/bluetooth/sap/BluetoothSapService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/codeaurora/bluetooth/sap/BluetoothSapService.java b/src/org/codeaurora/bluetooth/sap/BluetoothSapService.java
index 70697b3..7ffec37 100644
--- a/src/org/codeaurora/bluetooth/sap/BluetoothSapService.java
+++ b/src/org/codeaurora/bluetooth/sap/BluetoothSapService.java
@@ -1290,7 +1290,8 @@ public class BluetoothSapService extends Service {
IpcMsgBuffer.put(SAP_HEADER_SIZE + SAP_MSG_OFF_PARAM_VAL, CONN_ERR);
try {
- mRfcommOutputStream.write(IpcMsgBuffer.array(), 0, WriteLen);
+ if (mRfcommOutputStream != null)
+ mRfcommOutputStream.write(IpcMsgBuffer.array(), 0, WriteLen);
} catch (IOException ex) {
if (VERBOSE) Log.v(TAG, "mRfcommOutputStream wrtie exception: " + ex.toString());
}