Commit 7880981a authored by Tatiana Gornak's avatar Tatiana Gornak Committed by Commit Bot

Catch java.lang.IllegalArgumentException in parsing baae64

BUG=829628

Change-Id: I054c8a40cf065d0c2f42bd8de9e5de6fed3fb9e9
Reviewed-on: https://chromium-review.googlesource.com/1059155
Commit-Queue: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: default avatarYaron Friedman <yfriedman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#561876}
parent cabbdc2e
...@@ -176,7 +176,11 @@ public class InvalidationPreferences { ...@@ -176,7 +176,11 @@ public class InvalidationPreferences {
if (base64State == null) { if (base64State == null) {
return null; return null;
} }
return Base64.decode(base64State, Base64.DEFAULT); try {
return Base64.decode(base64State, Base64.DEFAULT);
} catch (java.lang.IllegalArgumentException e) {
return null;
}
} }
/** Sets the notification client internal state to {@code state}. */ /** Sets the notification client internal state to {@code state}. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment