From b3afde915018029339bad1747277abde6be08c9f Mon Sep 17 00:00:00 2001 From: Andrew Yates <ayates@ebi.ac.uk> Date: Mon, 15 Apr 2013 11:54:16 +0000 Subject: [PATCH] [ENSCORESW-399] Fixing an issue reported from Steve Moss. We cause an exception because we do not check if we can project the cDNA location. Sometimes it is undefined. --- modules/Bio/EnsEMBL/Transcript.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/Bio/EnsEMBL/Transcript.pm b/modules/Bio/EnsEMBL/Transcript.pm index 4967a72d83..8605958235 100755 --- a/modules/Bio/EnsEMBL/Transcript.pm +++ b/modules/Bio/EnsEMBL/Transcript.pm @@ -1707,6 +1707,7 @@ sub five_prime_utr_Feature { my ($self) = @_; my ($start, $end); my $cdna_coding = $self->cdna_coding_start(); + return unless $cdna_coding; my ($genomic_pos) = $self->cdna2genomic($cdna_coding, $cdna_coding); if($self->strand() == 1) { $start = $self->seq_region_start(); @@ -1749,6 +1750,7 @@ sub three_prime_utr_Feature { my ($self) = @_; my ($start, $end); my $cdna_coding = $self->cdna_coding_end(); + return unless $cdna_coding; my ($genomic_pos) = $self->cdna2genomic($cdna_coding, $cdna_coding); if($self->strand() == 1) { $end = $self->seq_region_end(); -- GitLab