diff -r 27580a47ae28 -r 9eb8f52893d0 pidgin/plugins/spellchk.c --- a/pidgin/plugins/spellchk.c Sun May 11 22:31:38 2014 +0200 +++ b/pidgin/plugins/spellchk.c Tue May 13 00:26:43 2014 +0200 @@ -1795,7 +1795,7 @@ model = gtk_list_store_new((gint)N_COLUMNS, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN); hashes = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); - while (buf_get_line(ibuf, &buf, &pnt, size)) { + while (ibuf && buf_get_line(ibuf, &buf, &pnt, size)) { if (*buf != '#') { if (!g_ascii_strncasecmp(buf, "BAD ", 4)) {