Commit 91bc112d authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

In load(): Take into account that get_all_alternative_translations() may

return undef (which is not a good array reference).
parent 05e0cd50
......@@ -2492,12 +2492,14 @@ sub load {
if ( defined($translation) ) {
$translation->load($load_xrefs);
foreach my $alt_translation (
@{ $self->get_all_alternative_translations() } )
{
my $alt_translations = $self->get_all_alternative_translations();
if ( defined($alt_translations) ) {
foreach my $alt_translation ( @{$alt_translations} ) {
$alt_translation->load($load_xrefs);
}
}
}
foreach my $exon ( @{ $self->get_all_Exons() } ) {
$exon->load();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment