From 5f3666e310b47d11cc8a1786f9d686a81cb04df1 Mon Sep 17 00:00:00 2001 From: Graham McVicker <mcvicker@sanger.ac.uk> Date: Fri, 19 Mar 2004 09:20:40 +0000 Subject: [PATCH] fixed auto-vivification bug in get_all_ExternalFeatures (spotted by pm2) --- modules/Bio/EnsEMBL/Slice.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/Slice.pm b/modules/Bio/EnsEMBL/Slice.pm index 119fe3e42b..bab8b84c46 100644 --- a/modules/Bio/EnsEMBL/Slice.pm +++ b/modules/Bio/EnsEMBL/Slice.pm @@ -1627,7 +1627,9 @@ sub get_all_ExternalFeatures { if($track_name) { #use a specific adaptor - push @xf_adaptors, $xfa_hash->{$track_name}; + if(exists $xfa_hash->{$track_name}) { + push @xf_adaptors, $xfa_hash->{$track_name}; + } } else { #use all of the adaptors push @xf_adaptors, values %$xfa_hash; -- GitLab