diff options
author | Jeff Davidson <jpd@google.com> | 2016-12-09 22:09:18 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-12-09 22:09:19 +0000 |
commit | 4ad53e3321d9bed5a216d65623d92c91c5457e55 (patch) | |
tree | 4cef2de72f54f112436befe6c5dcbad47cef01b9 /src | |
parent | f925be987b56fbc46376f8caba7c8bb510c71ba3 (diff) | |
parent | 86c71b8458444dfcbf2c3919961b86bc92f65657 (diff) | |
download | volley-4ad53e3321d9bed5a216d65623d92c91c5457e55.tar.gz |
Merge "Fix NegativeArraySizeException in DiskBasedCache.streamToBytes"
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/android/volley/toolbox/DiskBasedCache.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/android/volley/toolbox/DiskBasedCache.java b/src/main/java/com/android/volley/toolbox/DiskBasedCache.java index c76d39a..f724d72 100644 --- a/src/main/java/com/android/volley/toolbox/DiskBasedCache.java +++ b/src/main/java/com/android/volley/toolbox/DiskBasedCache.java @@ -122,6 +122,10 @@ public class DiskBasedCache implements Cache { VolleyLog.d("%s: %s", file.getAbsolutePath(), e.toString()); remove(key); return null; + } catch (NegativeArraySizeException e) { + VolleyLog.d("%s: %s", file.getAbsolutePath(), e.toString()); + remove(key); + return null; } finally { if (cis != null) { try { |