Skip to content

Commit

Permalink
NPE and other runtime exceptions possibly thrown handled
Browse files Browse the repository at this point in the history
  • Loading branch information
sidheshenator committed Jul 14, 2015
1 parent 9a98950 commit 1ed5e02
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -136,7 +136,7 @@ List<EmailMessage> parse(File mboxFile) {
try {
Message msg = messageBuilder.parseMessage(message.asInputStream(theEncoder.charset()));
emails.add(extractEmail(msg));
} catch (IOException ex) {
} catch (RuntimeException | IOException ex) {
logger.log(Level.WARNING, "Failed to get message from mbox: {0}", ex.getMessage()); //NON-NLS
failCount++;
}
Expand Down

0 comments on commit 1ed5e02

Please sign in to comment.