From 46b2c1412749c766e4c80168effd0471ddbf6dfd Mon Sep 17 00:00:00 2001 From: Eugene Kulesha <ek@ebi.ac.uk> Date: Wed, 9 Mar 2005 15:15:02 +0000 Subject: [PATCH] stop displaying DAS tracks for data objects without IDs --- modules/Bio/EnsEMBL/Translation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/Translation.pm b/modules/Bio/EnsEMBL/Translation.pm index fe00c1ece1..c97f560b9f 100755 --- a/modules/Bio/EnsEMBL/Translation.pm +++ b/modules/Bio/EnsEMBL/Translation.pm @@ -774,7 +774,7 @@ sub get_all_DAS_Features{ my $db = $self->adaptor->db; my $GeneAdaptor = $db->get_GeneAdaptor; - my $Gene = $GeneAdaptor->fetch_by_translation_stable_id($self->stable_id); + my $Gene = $GeneAdaptor->fetch_by_translation_stable_id($self->stable_id) || return; my $slice = $Gene->feature_Slice; foreach my $dasfact( @{$self->get_all_DASFactories} ){ -- GitLab