From f4bff40ab127fc7765bbda46713df10f0b4500e7 Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Tue, 5 Oct 2010 23:02:38 +0000
Subject: [PATCH] Consider that vocabulary may not be populated yet.

---
 plugins/FeedsTermProcessor.inc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/plugins/FeedsTermProcessor.inc b/plugins/FeedsTermProcessor.inc
index d45d40e2..848cc431 100644
--- a/plugins/FeedsTermProcessor.inc
+++ b/plugins/FeedsTermProcessor.inc
@@ -193,10 +193,11 @@ class FeedsTermProcessor extends FeedsProcessor {
        ),
     );
     // Let implementers of hook_feeds_term_processor_targets() add their targets.
-    if ($vocabulary = $this->vocabulary()) {
+    try {
       self::loadMappers();
-      feeds_alter('feeds_processor_targets', $targets, 'taxonomy_term', $vocabulary->machine_name);
+      feeds_alter('feeds_processor_targets', $targets, 'taxonomy_term', $this->vocabulary()->machine_name);
     }
+    catch (Exception $e) {}
     return $targets;
   }
 
-- 
GitLab