summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/android/bluetooth/client/pbap/BluetoothPbapRequestPullVcardEntry.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/android/bluetooth/client/pbap/BluetoothPbapRequestPullVcardEntry.java b/src/android/bluetooth/client/pbap/BluetoothPbapRequestPullVcardEntry.java
index 009ec15..42b6692 100644
--- a/src/android/bluetooth/client/pbap/BluetoothPbapRequestPullVcardEntry.java
+++ b/src/android/bluetooth/client/pbap/BluetoothPbapRequestPullVcardEntry.java
@@ -71,7 +71,8 @@ final class BluetoothPbapRequestPullVcardEntry extends BluetoothPbapRequest {
Log.v(TAG, "checkResponseCode");
if (mResponse.getCount() == 0) {
- if (responseCode != ResponseCodes.OBEX_HTTP_NOT_FOUND) {
+ if (responseCode != ResponseCodes.OBEX_HTTP_NOT_FOUND &&
+ responseCode != ResponseCodes.OBEX_HTTP_NOT_ACCEPTABLE) {
throw new IOException("Invalid response received");
} else {
Log.v(TAG, "Vcard Entry not found");