catch all sorts of date parsing errors
This commit is contained in:
parent
8e4440a49a
commit
75a485cbc1
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue