Index: pathauto.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.module,v
retrieving revision 1.118.2.25
diff -u -r1.118.2.25 pathauto.module
--- pathauto.module	30 Jun 2010 15:09:29 -0000	1.118.2.25
+++ pathauto.module	6 Jul 2010 00:30:52 -0000
@@ -418,7 +418,7 @@
       _pathauto_include();
       // Use the username to automatically create an alias
       $pathauto_user = (object) array_merge((array) $user, $edit);
-      if ($user->name) {
+      if ($user->uid) {
         $placeholders = pathauto_get_placeholders('user', $pathauto_user);
         $src = 'user/'. $user->uid;
         $alias = pathauto_create_alias('user', $op, $placeholders, $src, $user->uid);
