diff -r 69250d5830b2 -r 736dde71e3ec libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Tue Jun 15 01:33:28 2010 +0000 +++ b/libpurple/protocols/jabber/jabber.c Tue Jun 15 22:41:37 2010 +0000 @@ -543,6 +543,13 @@ int jabber_prpl_send_raw(PurpleConnection *gc, const char *buf, int len) { JabberStream *js = purple_connection_get_protocol_data(gc); + + g_return_val_if_fail(js != NULL, -1); + /* TODO: It's probably worthwhile to restrict this to when the account + * state is CONNECTED, but I can /almost/ envision reasons for wanting + * to do things during the connection process. + */ + jabber_send_raw(js, buf, len); return len; }