Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0619eaf7 authored by cketti's avatar cketti
Browse files

Catch NumberFormatException when parsing disposition size parameter

Fixes issue 3712
parent 88dc36da
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 */ }
                                    }
                                }
                            }