catch all sorts of date parsing errors

This commit is contained in:
Daniel Gultsch 2017-11-16 12:47:49 +01:00
parent 8e4440a49a
commit 75a485cbc1
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ public abstract class AbstractParser {
try {
min = Math.min(min,AbstractParser.parseTimestamp(stamp));
returnDefault = false;
} catch (ParseException e) {
} catch (Throwable t) {
//ignore
}
}

View file

@ -226,7 +226,7 @@ public class PresenceParser extends AbstractParser implements
final String since = idle.getAttribute("since");
contact.setLastseen(AbstractParser.parseTimestamp(since));
contact.flagInactive();
} catch (NullPointerException | ParseException e) {
} catch (Throwable throwable) {
if (contact.setLastseen(AbstractParser.parseTimestamp(packet))) {
contact.flagActive();
}