Index: device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java |
diff --git a/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java b/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java |
index ba2aef35f8f22d4a6831b4d0c18637cc45a05e9f..30b59b3332b96df4d62b7626d6622345216c3774 100644 |
--- a/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java |
+++ b/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java |
@@ -466,7 +466,7 @@ public class NfcImpl implements Nfc { |
} catch (TagLostException e) { |
Log.w(TAG, "Cannot write data to NFC tag. Tag is lost."); |
pendingPushOperationCompleted(createError(NfcErrorType.IO_ERROR)); |
- } catch (FormatException | IOException e) { |
+ } catch (FormatException | IllegalStateException | IOException e) { |
Log.w(TAG, "Cannot write data to NFC tag. IO_ERROR."); |
pendingPushOperationCompleted(createError(NfcErrorType.IO_ERROR)); |
} |
@@ -499,7 +499,7 @@ public class NfcImpl implements Nfc { |
} |
} catch (TagLostException e) { |
Log.w(TAG, "Cannot read data from NFC tag. Tag is lost."); |
- } catch (FormatException | IOException e) { |
+ } catch (FormatException | IllegalStateException | IOException e) { |
Log.w(TAG, "Cannot read data from NFC tag. IO_ERROR."); |
} |