Skip to content

Commit

Permalink
[bug 2843]
Browse files Browse the repository at this point in the history
* check phase value prior to calling its value (Cass Johnston)

svn path=/bioperl-live/trunk/; revision=16270
  • Loading branch information
cjfields authored and carandraug committed Feb 10, 2013
1 parent d4549d8 commit 87b2474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bio/FeatureIO/gff.pm
Expand Up @@ -900,7 +900,7 @@ sub _write_feature_3 {
my $max = $feature->end || '.';
my $strand = $feature->strand == 1 ? '+' : $feature->strand == -1 ? '-' : '.';
my $score = defined($feature->score) ? (ref($feature->score) ? $feature->score->value : $feature->score) : undef;
my $phase = $feature->phase->value;
my $phase = defined($feature->phase) ? (ref($feature->phase) ? $feature->phase->value : $feature->phase) : undef;

my @attr;
if(my @v = ($feature->get_Annotations('Name'))){
Expand Down

0 comments on commit 87b2474

Please sign in to comment.