Skip to content
Snippets Groups Projects
Commit eb595e64 authored by Dan Staines's avatar Dan Staines
Browse files

check to see if canonical translation is set before trying to access it

parent 708dc463
No related branches found
No related tags found
No related merge requests found
...@@ -849,7 +849,9 @@ sub seq { ...@@ -849,7 +849,9 @@ sub seq {
my $canonical_translation = $transcript->translation(); my $canonical_translation = $transcript->translation();
my $is_alternative; my $is_alternative;
if(!$canonical_translation) {
throw "Transcript does not have a canonical translation";
}
if ( defined( $canonical_translation->stable_id() ) if ( defined( $canonical_translation->stable_id() )
&& defined( $self->stable_id() ) ) && defined( $self->stable_id() ) )
{ {
......
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