# HG changeset patch # User Daniel Atallah # Date 1147311330 0 # Node ID 8d972f41b4debd562708c83341488d95b7a2b9c0 # Parent fd708f52defda2bc1b142e4f20ac99e86ea23696 [gaim-migrate @ 16176] Fix bug# 1464061. I haven't fixed a bug in forever and I needed a break from my old house plumbing nightmares. It seems that some versions of ejabberd don't necessarily provide an error element and we should probably not crash when this happens. committer: Tailor Script diff -r fd708f52defd -r 8d972f41b4de src/protocols/jabber/message.c --- a/src/protocols/jabber/message.c Wed May 10 17:33:51 2006 +0000 +++ b/src/protocols/jabber/message.c Thu May 11 01:35:30 2006 +0000 @@ -231,7 +231,7 @@ return; buf = g_strdup_printf(_("Message delivery to %s failed: %s"), - jm->from, jm->error); + jm->from, jm->error ? jm->error : ""); gaim_notify_formatted(jm->js->gc, _("Jabber Message Error"), _("Jabber Message Error"), buf, jm->xhtml ? jm->xhtml : jm->body, NULL, NULL);