libpurple/protocols/jabber/presence.c

changeset 37238
80d13da6d42f
parent 37158
96b5ab42da00
child 37423
d2f0259aa43f
--- a/libpurple/protocols/jabber/presence.c	Fri Aug 21 10:42:25 2015 +0200
+++ b/libpurple/protocols/jabber/presence.c	Wed Sep 02 14:56:47 2015 -0400
@@ -334,7 +334,7 @@
 	}
 
 	/* if we are idle and not offline, include idle */
-	if (js->idle && state != JABBER_BUDDY_STATE_UNAVAILABLE) {
+	if (js && js->idle && state != JABBER_BUDDY_STATE_UNAVAILABLE) {
 		PurpleXmlNode *query = purple_xmlnode_new_child(presence, "query");
 		gchar seconds[10];
 		g_snprintf(seconds, 10, "%d", (int) (time(NULL) - js->idle));

mercurial