From 49e381ab75bf1d8421b29798834b082e19975c80 Mon Sep 17 00:00:00 2001
From: Jessica Severin <jessica@ebi.ac.uk>
Date: Wed, 14 Sep 2005 02:11:53 +0000
Subject: [PATCH] added check for status being defined when dataflowing a job

---
 modules/Bio/EnsEMBL/Hive/Queen.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/Bio/EnsEMBL/Hive/Queen.pm b/modules/Bio/EnsEMBL/Hive/Queen.pm
index c235201c6..8fb529e1c 100755
--- a/modules/Bio/EnsEMBL/Hive/Queen.pm
+++ b/modules/Bio/EnsEMBL/Hive/Queen.pm
@@ -294,7 +294,7 @@ sub flow_output_job {
   
   return unless($job);
   my $create_blocked_job = 0;
-  $create_blocked_job = 1 if($job->status eq 'BLOCKED');
+  $create_blocked_job = 1 if($job->status and ($job->status eq 'BLOCKED'));
   
   my @output_jobs;
   my $rules = $self->db->get_DataflowRuleAdaptor->fetch_from_analysis_job($job);
-- 
GitLab