Index: maxlength.module
===================================================================
--- maxlength.module	(revision 5477)
+++ maxlength.module	(working copy)
@@ -56,10 +56,14 @@
 function _maxlength_content_form_alter(&$form, &$form_state, $form_id) {
   $type = $form['type']['#value'];
   // update the title as needed
+  if (isset($form['title'])) {
   _maxlength_format_element($form['title'], $form['title']['#default_value'], 'title', 'title', $type);
+  }

   // Update the body as needed
+  if (isset($form['body_field']['body'])) {
   _maxlength_format_element($form['body_field']['body'], $form['body_field']['body']['#default_value'], 'body', 'body', $type);
+  }


   if (module_exists('content')) {
