mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 09:08:49 -05:00
Catch NumberFormatException when parsing disposition size parameter
Fixes issue 3712
This commit is contained in:
parent
88dc36da8a
commit
0619eaf79c
@ -2402,7 +2402,9 @@ public class LocalStore extends Store implements Serializable {
|
|||||||
if (disposition != null) {
|
if (disposition != null) {
|
||||||
String s = MimeUtility.getHeaderParameter(disposition, "size");
|
String s = MimeUtility.getHeaderParameter(disposition, "size");
|
||||||
if (s != null) {
|
if (s != null) {
|
||||||
size = Integer.parseInt(s);
|
try {
|
||||||
|
size = Integer.parseInt(s);
|
||||||
|
} catch (NumberFormatException e) { /* Ignore */ }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user