aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main/java/de/pixart/messenger/parser/AbstractParser.java2
-rw-r--r--src/main/java/de/pixart/messenger/parser/PresenceParser.java3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/parser/AbstractParser.java b/src/main/java/de/pixart/messenger/parser/AbstractParser.java
index f85be0952..283aee7af 100644
--- a/src/main/java/de/pixart/messenger/parser/AbstractParser.java
+++ b/src/main/java/de/pixart/messenger/parser/AbstractParser.java
@@ -46,7 +46,7 @@ public abstract class AbstractParser {
try {
min = Math.min(min, AbstractParser.parseTimestamp(stamp));
returnDefault = false;
- } catch (ParseException e) {
+ } catch (Throwable t) {
//ignore
}
}
diff --git a/src/main/java/de/pixart/messenger/parser/PresenceParser.java b/src/main/java/de/pixart/messenger/parser/PresenceParser.java
index 0ade1abc3..e46947304 100644
--- a/src/main/java/de/pixart/messenger/parser/PresenceParser.java
+++ b/src/main/java/de/pixart/messenger/parser/PresenceParser.java
@@ -2,7 +2,6 @@ package de.pixart.messenger.parser;
import android.util.Log;
-import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
@@ -224,7 +223,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();
}