diff --git a/modules/Bio/EnsEMBL/Transcript.pm b/modules/Bio/EnsEMBL/Transcript.pm
index 2d77f3f1966e913c45269142514cf155c8e8c9be..40307b8136516a57b32433a318ceeb458213494b 100755
--- a/modules/Bio/EnsEMBL/Transcript.pm
+++ b/modules/Bio/EnsEMBL/Transcript.pm
@@ -1161,7 +1161,10 @@ sub add_Exon{
 sub get_all_Exons {
   my ( $self, @args ) = @_;
 
-  my ($constitutive) = rearrange( 'CONSTITUTIVE', @args );
+  my $constitutive;
+  if (@args) {
+    $constitutive = rearrange( 'CONSTITUTIVE', @args );
+  }
 
   if (!defined( $self->{'_trans_exon_array'} )
     && defined( $self->adaptor() ) )