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