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

added argument checking to get_mapping_path

parent 1c647a20
No related branches found
No related tags found
No related merge requests found
......@@ -665,6 +665,12 @@ sub get_mapping_path {
my $cs1 = shift;
my $cs2 = shift;
if(!ref($cs1) || !ref($cs2) ||
!$cs1->isa('Bio::EnsEMBL::CoordSystem') ||
!$cs2->isa('Bio::EnsEMBL::CoordSystem')) {
throw('Two Bio::EnsEMBL::CoordSystem arguments expected.');
}
my $key1 = $cs1->name() . ":" . $cs1->version();
my $key2 = $cs2->name() . ":" . $cs2->version();
......
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