diff options
-rw-r--r-- | src/com/isode/stroke/elements/Stanza.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/isode/stroke/elements/Stanza.java b/src/com/isode/stroke/elements/Stanza.java index 82fd41b..11ba1b4 100644 --- a/src/com/isode/stroke/elements/Stanza.java +++ b/src/com/isode/stroke/elements/Stanza.java @@ -177,7 +177,8 @@ public abstract class Stanza implements Element { Vector<Delay> delays = getPayloads(new Delay()); for (int i = 0; i < delays.size(); ++i) { Delay delay = delays.get(i); - if (delay.getFrom().equals(jid)) { + final JID from = delay.getFrom(); + if (from != null && from.equals(jid)) { return delay.getStamp(); } } |