--- a/pidgin/gtkaccount.c Thu Apr 03 18:01:10 2014 +0200 +++ b/pidgin/gtkaccount.c Thu Apr 03 18:23:35 2014 +0200 @@ -329,7 +329,7 @@ GHashTable *table = NULL; const char *label = NULL; - if(PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(dialog->prpl_info, get_account_text_table)) { + if (PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(dialog->prpl_info, get_account_text_table)) { table = dialog->prpl_info->get_account_text_table(NULL); label = g_hash_table_lookup(table, "login_label"); @@ -708,7 +708,7 @@ const char *value = NULL; char *c; - if (dialog->account != NULL) { + if (dialog->account != NULL && username != NULL) { if(purple_account_user_split_get_reverse(split)) c = strrchr(username, purple_account_user_split_get_separator(split));