Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java

Issue 2845463004: [webnfc] Handle IllegalStateException during read / write operations (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/nfc/android/java/src/org/chromium/device/nfc/NfcTagHandler.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.");
}
« no previous file with comments | « no previous file | device/nfc/android/java/src/org/chromium/device/nfc/NfcTagHandler.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698