diff --git a/modules/Bio/EnsEMBL/DBSQL/MetaContainer.pm b/modules/Bio/EnsEMBL/DBSQL/MetaContainer.pm index ddddddffec78588f88b0eab73768ecb80d362a51..3fbae59e05a06681b703fa87335b010a71d35f0a 100644 --- a/modules/Bio/EnsEMBL/DBSQL/MetaContainer.pm +++ b/modules/Bio/EnsEMBL/DBSQL/MetaContainer.pm @@ -130,14 +130,14 @@ sub get_Species { return undef; } - my @classification = $self->list_value_by_key( 'species.classification' ); - if( ! @classification ) { + my $classification = $self->list_value_by_key( 'species.classification' ); + if( ! @$classification ) { return undef; } my $species = new Bio::Species; $species->common_name( $common_name ); - $species->classification( @classification ); + $species->classification( @$classification ); return $species; }