diff options
-rw-r--r-- | src/libaccountsservice/act-user-manager.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libaccountsservice/act-user-manager.c b/src/libaccountsservice/act-user-manager.c index 4e25bf9..7202b07 100644 --- a/src/libaccountsservice/act-user-manager.c +++ b/src/libaccountsservice/act-user-manager.c @@ -732,7 +732,10 @@ remove_user (ActUserManager *manager, if (act_user_get_object_path (user) != NULL) { g_hash_table_remove (manager->priv->users_by_object_path, act_user_get_object_path (user)); } - g_hash_table_remove (manager->priv->users_by_name, act_user_get_user_name (user)); + if (act_user_get_user_name (user) != NULL) { + g_hash_table_remove (manager->priv->users_by_name, act_user_get_user_name (user)); + + } if (manager->priv->is_loaded) { g_signal_emit (manager, signals[USER_REMOVED], 0, user); |