Index: misc/teaser.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/teaser.js,v
retrieving revision 1.14
diff -u -F^f -r1.14 teaser.js
--- misc/teaser.js	29 Oct 2008 10:01:26 -0000	1.14
+++ misc/teaser.js	19 Nov 2008 19:51:18 -0000
@@ -72,16 +72,19 @@
       $(include).parent().parent().before(button);
 
       // Extract the teaser from the body, if set. Otherwise, stay in joined mode.
-      var text = body.val().split('<!--break-->', 2);
-      if (text.length == 2) {
-        teaser[0].value = trim(text[0]);
-        body[0].value = trim(text[1]);
-        $(teaser).attr('disabled', '');
-        $('input', button).val(Drupal.t('Join summary')).toggle(join_teaser, split_teaser);
-      }
-      else {
-        $('input', button).val(Drupal.t('Split summary at cursor')).toggle(split_teaser, join_teaser);
-        $(checkbox).hide().children('input').attr('checked', true);
+      var text = body.val();
+      if (text !== undefined) {
+        text.split('<!--break-->', 2);
+        if (text.length == 2) {
+          teaser[0].value = trim(text[0]);
+          body[0].value = trim(text[1]);
+          $(teaser).attr('disabled', '');
+          $('input', button).val(Drupal.t('Join summary')).toggle(join_teaser, split_teaser);
+        }
+        else {
+          $('input', button).val(Drupal.t('Split summary at cursor')).toggle(split_teaser, join_teaser);
+          $(checkbox).hide().children('input').attr('checked', true);
+        }
       }
 
       // Make sure that textarea.js has done its magic to ensure proper visibility state.
