Fix autocomplete clash, fix crash on opening window when recipient not in roster

This commit is contained in:
James Booth
2014-11-22 21:55:33 +00:00
parent 6772935493
commit b819ea3708
2 changed files with 30 additions and 30 deletions

View File

@@ -263,7 +263,11 @@ roster_add(const char * const barejid, const char * const name, GSList *groups,
char *
roster_barejid_from_name(const char * const name)
{
return g_hash_table_lookup(name_to_barejid, name);
if (name) {
return g_hash_table_lookup(name_to_barejid, name);
} else {
return NULL;
}
}
GSList *