diff --git a/e_activist.module b/e_activist.module
index 7c59045..aed636d 100644
--- a/e_activist.module
+++ b/e_activist.module
@@ -109,6 +109,7 @@ function e_activist_preprocess_page(&$vars) {
  * Add an additional validation routine and set the values of any condition fields.
  */
 function e_activist_form_alter(&$form, &$form_state, $form_id) {
+  if(isset($form['#node'])){
   if ($form['#node']->type == 'activist_action' && strstr($form_id, 'webform_client_form')) {
     $form['#after_build'][] = 'e_activist_after_build';
     $form['#validate'][] = 'e_activist_webform_validate';
@@ -122,6 +123,7 @@ function e_activist_form_alter(&$form, &$form_state, $form_id) {
     unset($form_state['storage']['conditional_values']);
   }
   }
+}
 
 /**
  * Recurses through a FAPI array and sets a field's value.
