Skip to content
Snippets Groups Projects
Commit c3b8d77c authored by Graham McVicker's avatar Graham McVicker
Browse files

added argument checking to get_mapping_path

parent 78e3a437
No related branches found
No related tags found
No related merge requests found
......@@ -641,6 +641,13 @@ sub get_mapping_path {
$self->{'_shortest_path'} ||= {};
if(!ref($cs1) || !$cs1->isa('Bio::EnsEMBL::CoordSystem')) {
throw("CoordSystem argument expected.");
}
if(!ref($cs2) || !$cs2->isa('Bio::EnsEMBL::CoordSystem')) {
throw("CoordSystem argument expected.");
}
my $cs1_id = $cs1->dbID();
my $cs2_id = $cs2->dbID();
......
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