From b06252a0d78ab63fd1d21ce102854894a3bc7634 Mon Sep 17 00:00:00 2001
From: Magali Ruffier <mr6@ebi.ac.uk>
Date: Fri, 4 Nov 2016 09:18:24 +0000
Subject: [PATCH] skip null stable ids in otherfeatures dbs

---
 misc-scripts/stable_id_lookup/populate_stable_id_lookup.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/misc-scripts/stable_id_lookup/populate_stable_id_lookup.pl b/misc-scripts/stable_id_lookup/populate_stable_id_lookup.pl
index 7425b7f50c..dbc9f64094 100644
--- a/misc-scripts/stable_id_lookup/populate_stable_id_lookup.pl
+++ b/misc-scripts/stable_id_lookup/populate_stable_id_lookup.pl
@@ -368,6 +368,7 @@ sub insert_ids {
           my $status = $tuple_status[$tuple];
           $status = [0, "Skipped"] unless defined $status;
           next unless ref $status;
+          next unless defined $ids[$type];
           printf STDERR "Failed to insert (%s, %s, %s, %s): %s\n",
           $ids[$tuple], $species_id[$tuple], $db_type[$tuple], $object_type[$tuple], $status->[1];
      }
-- 
GitLab