diff --git a/src/eu/siacs/conversations/entities/Presences.java b/src/eu/siacs/conversations/entities/Presences.java index 7789164876a696e36d063a3a5ca2d5f9bd4e2f21..acd80735a7539ca7f8950f2c2313ac847a33fecd 100644 --- a/src/eu/siacs/conversations/entities/Presences.java +++ b/src/eu/siacs/conversations/entities/Presences.java @@ -44,7 +44,7 @@ public class Presences { } public static int parseShow(Element show) { - if (show == null) { + if ((show == null)||(show.getContent() == null)) { return Presences.ONLINE; } else if (show.getContent().equals("away")) { return Presences.AWAY;