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

Unified Diff: base/android/java/src/org/chromium/base/ContentUriUtils.java

Issue 2861583008: Catch more exception when accessing content URI (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/ContentUriUtils.java
diff --git a/base/android/java/src/org/chromium/base/ContentUriUtils.java b/base/android/java/src/org/chromium/base/ContentUriUtils.java
index 2c0e791e695f768501f50abade0e1bd5a4d0a194..a239fd4a98c090f7075c1aceb163287f2ece28c3 100644
--- a/base/android/java/src/org/chromium/base/ContentUriUtils.java
+++ b/base/android/java/src/org/chromium/base/ContentUriUtils.java
@@ -158,10 +158,9 @@ public abstract class ContentUriUtils {
Log.w(TAG, "Cannot find content uri: " + uriString, e);
} catch (SecurityException e) {
Log.w(TAG, "Cannot open content uri: " + uriString, e);
- } catch (IllegalArgumentException | IllegalStateException e) {
+ } catch (Exception e) {
Log.w(TAG, "Unknown content uri: " + uriString, e);
}
-
return null;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698