From a56041e0853c67e64bb120fdb8a3bf58066285b3 Mon Sep 17 00:00:00 2001 From: Glenn Proctor <gp1@sanger.ac.uk> Date: Fri, 22 Sep 2006 12:09:19 +0000 Subject: [PATCH] Check adaptor is there before using it. --- modules/Bio/EnsEMBL/DBEntry.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/DBEntry.pm b/modules/Bio/EnsEMBL/DBEntry.pm index 295208c0db..2dc2a846b6 100644 --- a/modules/Bio/EnsEMBL/DBEntry.pm +++ b/modules/Bio/EnsEMBL/DBEntry.pm @@ -509,7 +509,7 @@ sub get_all_synonyms { my $self = shift; # lazy-load synonyms if required - if (!$self->{synonyms}) { + if (!$self->{synonyms} & $self->{adaptor}) { $self->{synonyms} = $self->{adaptor}->fetch_all_synonyms($self->dbID()); } -- GitLab