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 {
|
try {
|
||||||
min = Math.min(min,AbstractParser.parseTimestamp(stamp));
|
min = Math.min(min,AbstractParser.parseTimestamp(stamp));
|
||||||
returnDefault = false;
|
returnDefault = false;
|
||||||
} catch (ParseException e) {
|
} catch (Throwable t) {
|
||||||
//ignore
|
//ignore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -226,7 +226,7 @@ public class PresenceParser extends AbstractParser implements
|
||||||
final String since = idle.getAttribute("since");
|
final String since = idle.getAttribute("since");
|
||||||
contact.setLastseen(AbstractParser.parseTimestamp(since));
|
contact.setLastseen(AbstractParser.parseTimestamp(since));
|
||||||
contact.flagInactive();
|
contact.flagInactive();
|
||||||
} catch (NullPointerException | ParseException e) {
|
} catch (Throwable throwable) {
|
||||||
if (contact.setLastseen(AbstractParser.parseTimestamp(packet))) {
|
if (contact.setLastseen(AbstractParser.parseTimestamp(packet))) {
|
||||||
contact.flagActive();
|
contact.flagActive();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue