Index: protected_node.module
===================================================================
--- protected_node.module	(revision 4991)
+++ protected_node.module	(working copy)
@@ -81,9 +81,9 @@
  * @link http://api.drupal.org/api/function/hook_form_alter/6
  */
 function protected_node_form_alter(&$form, &$form_state, $form_id) {
-  $types = node_get_types();
-  $node_type = $types[$form['type']['#value']];
-  if ($form['#id'] == 'node-form' && (user_access( 'edit protected content' ) || user_access( 'edit protected ' . $form['type']['#value'] ))) {
+  if (isset($form['type']['#value']) && $form['#id'] == 'node-form' && (user_access( 'edit protected content' ) || user_access( 'edit protected ' . $form['type']['#value'] ))) {
+    $types = node_get_types();
+    $node_type = $types[$form['type']['#value']];
     $form['protected_node'] = array(
       '#type' => 'fieldset',
       '#description' => t( 'Here if you check the checkbox and provide a password your newly created node will be password protected.' ),
