diff options
author | fredc <fredc@broadcom.com> | 2012-04-24 11:51:48 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-07-16 22:03:55 -0700 |
commit | 7aab11364743cbca6eeefecbbde19f0434aff362 (patch) | |
tree | fab83eddc483c29799caaf48e5f38740196515c9 /src/com/android/bluetooth/opp/BluetoothOppTransfer.java | |
parent | 68e7fc4f2c62ebc76e86109a919592ad25ec11d7 (diff) | |
download | android_packages_apps_Bluetooth-7aab11364743cbca6eeefecbbde19f0434aff362.tar.gz android_packages_apps_Bluetooth-7aab11364743cbca6eeefecbbde19f0434aff362.tar.bz2 android_packages_apps_Bluetooth-7aab11364743cbca6eeefecbbde19f0434aff362.zip |
Fixed exception in BondStateMachine when quit message occurs. Fixed exception in OPP when remote does not accept incoming request.
Change-Id: Ibb43a26ee0ac62967518468d243880a0af987ba0
Diffstat (limited to 'src/com/android/bluetooth/opp/BluetoothOppTransfer.java')
-rwxr-xr-x | src/com/android/bluetooth/opp/BluetoothOppTransfer.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/android/bluetooth/opp/BluetoothOppTransfer.java b/src/com/android/bluetooth/opp/BluetoothOppTransfer.java index 089337007..e345f4eed 100755 --- a/src/com/android/bluetooth/opp/BluetoothOppTransfer.java +++ b/src/com/android/bluetooth/opp/BluetoothOppTransfer.java @@ -302,7 +302,11 @@ public class BluetoothOppTransfer implements BluetoothOppBatch.BluetoothOppBatch } } - BluetoothOppShareInfo info = mBatch.getPendingShare(); + BluetoothOppShareInfo info = null; + if (mBatch == null) { + return; + } + info = mBatch.getPendingShare(); while (info != null) { if (info.mStatus < 200) { info.mStatus = failReason; @@ -694,6 +698,10 @@ public class BluetoothOppTransfer implements BluetoothOppBatch.BluetoothOppBatch /* update a trivial field of a share to notify Provider the batch status change */ private void tickShareStatus(BluetoothOppShareInfo share) { + if (share == null) { + Log.d(TAG,"Share is null"); + return; + } Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); ContentValues updateValues = new ContentValues(); updateValues.put(BluetoothShare.DIRECTION, share.mDirection); |