fixed npe on rare occasion of show element in presence being null

iNPUTmice created

Change summary

src/eu/siacs/conversations/entities/Presences.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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;