? 795114-4_validate.patch
? libraries/simplepie.inc
Index: plugins/FeedsTermProcessor.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/feeds/plugins/FeedsTermProcessor.inc,v
retrieving revision 1.18
diff -u -p -r1.18 FeedsTermProcessor.inc
--- plugins/FeedsTermProcessor.inc	9 Sep 2010 23:16:29 -0000	1.18
+++ plugins/FeedsTermProcessor.inc	11 Sep 2010 02:22:04 -0000
@@ -118,7 +118,9 @@ class FeedsTermProcessor extends FeedsPr
     if (!$target_term) {
       $target_term = array();
     }
-    $vocabulary = $this->vocabulary();
+    if (!$vocabulary = $this->vocabulary()) {
+      throw new Exception(t('No vocabulary specified for term processor.'));
+    }
     $target_term['vid'] = $vocabulary->vid;
     $target_term = parent::map($batch, $target_term);
     // Taxonomy module expects synonyms to be supplied as a single string.
@@ -175,6 +177,15 @@ class FeedsTermProcessor extends FeedsPr
   }
 
   /**
+   * Override parent::configFormValidate().
+   */
+  public function configFormValidate(&$values) {
+    if (empty($values['vocabulary'])) {
+      form_set_error('vocabulary', t('Choose a vocabulary'));
+    }
+  }
+
+  /**
    * Return available mapping targets.
    */
   public function getMappingTargets() {
