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

This commit is contained in:
iNPUTmice 2014-07-01 14:53:39 +02:00
parent 2738d834b4
commit 6028bf4ee2
1 changed files with 1 additions and 1 deletions

View File

@ -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;