Commit 7b79629c authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

BUGFIX:

Always de-reference the value got from get_mapping_path().
Found by Magali.
parent 4501b68b
......@@ -1465,11 +1465,13 @@ sub store_assembly{
"the component Slice Coord_system" );
}
my @path = $asm_cs->adaptor->get_mapping_path($asm_cs,$cmp_cs);
if(!@path) {
throw("No mapping path defined between ".
$asm_cs->name . " and " .
$cmp_cs->name);
my @path =
@{ $asm_cs->adaptor()->get_mapping_path( $asm_cs, $cmp_cs ) };
if ( !@path ) {
throw("No mapping path defined between "
. $asm_cs->name() . " and "
. $cmp_cs->name() );
}
if( $asm_slice->length != $cmp_slice->length ){
......
......@@ -184,7 +184,7 @@ sub map {
last if($cs->rank >= $from_rank);
#check if a mapping path even exists to this coordinate system
my @mapping_path = $csa->get_mapping_path($cs,$other_cs);
my @mapping_path = @{ $csa->get_mapping_path( $cs, $other_cs ) };
if(@mapping_path) {
......@@ -325,7 +325,7 @@ sub _list {
last if($cs->rank >= $from_rank);
#check if a mapping path even exists to this coordinate system
my @mapping_path = $csa->get_mapping_path($cs, $other_cs);
my @mapping_path = @{ $csa->get_mapping_path( $cs, $other_cs ) };
if(@mapping_path) {
......
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