From 626dccc7ac14fc0c8544fd3ee3ec30e318718dac Mon Sep 17 00:00:00 2001
From: Leo Gordon <lg4@ebi.ac.uk>
Date: Mon, 30 Jun 2014 14:27:35 +0100
Subject: [PATCH] bugfix [to 0b75aa0] : check that status is defined before
 mapping

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

diff --git a/modules/Bio/EnsEMBL/Hive/Meadow/LSF.pm b/modules/Bio/EnsEMBL/Hive/Meadow/LSF.pm
index 84f585cc7..bdddf3eca 100644
--- a/modules/Bio/EnsEMBL/Hive/Meadow/LSF.pm
+++ b/modules/Bio/EnsEMBL/Hive/Meadow/LSF.pm
@@ -209,7 +209,7 @@ sub parse_report_source_line {
             foreach (@lines) {
                 if( /^(\w+\s+\w+\s+\d+\s+\d+:\d+:\d+):\s+Completed\s<(\w+)>(?:\.|;\s+(\w+))/ ) {
                     $died           = _yearless_2_datetime($1);
-                    $cause_of_death = $status_2_cod{$3};
+                    $cause_of_death = $3 && $status_2_cod{$3};
                     $exit_status = $2 . ($3 ? "/$3" : '');
                 }
                 elsif(/^\s*EXCEPTION STATUS:\s*(.*?)\s*$/) {
-- 
GitLab