Index: auto_username.module
===================================================================
--- auto_username.module	(revision 1993)
+++ auto_username.module	(working copy)
@@ -153,6 +153,7 @@
       // update happens before user module does its own saving.  Anything we do
       // to the users table in op update would be overwritten.
       if (variable_get('aun_update_on_edit', 1)) {
+        if (!$new_name) $new_name = $account->name;   // $new_name may not be set when other modules run _user saves 
         db_query("UPDATE {users} SET name='%s' WHERE uid=%d", array($new_name, $account->uid));
       }
       break;
