Index: misc/autocomplete.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/autocomplete.js,v
retrieving revision 1.16
diff -u -F^f -r1.16 autocomplete.js
--- misc/autocomplete.js	30 Dec 2006 12:10:00 -0000	1.16
+++ misc/autocomplete.js	9 Jan 2007 04:47:24 -0000
@@ -213,12 +213,14 @@
   }
 
   // Show popup with matches, if any
-  if (ul.childNodes.length > 0) {
-    $(this.popup).empty().append(ul).show();
-  }
-  else {
-    $(this.popup).css({visibility: 'hidden'});
-    this.hidePopup();
+  if (this.popup) {
+    if (ul.childNodes.length > 0) {
+      $(this.popup).empty().append(ul).show();
+    }
+    else {
+      $(this.popup).css({visibility: 'hidden'});
+      this.hidePopup();
+    }
   }
 }
 
