1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

Catch NumberFormatException when parsing disposition size parameter

Fixes issue 3712
This commit is contained in:
cketti 2011-10-01 21:17:00 +02:00
parent 88dc36da8a
commit 0619eaf79c

View File

@ -2402,7 +2402,9 @@ public class LocalStore extends Store implements Serializable {
if (disposition != null) {
String s = MimeUtility.getHeaderParameter(disposition, "size");
if (s != null) {
try {
size = Integer.parseInt(s);
} catch (NumberFormatException e) { /* Ignore */ }
}
}
}