From a7f34b0d86a0ebc79dcb26d36e73fc7a64581fee Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 11 May 2012 14:15:56 +0100 Subject: [PATCH] JAL-972 local do not have a coordsys element with source metadata (JAL-424 would resolve this!) --- src/jalview/ws/dbsources/das/datamodel/DasSequenceSource.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/jalview/ws/dbsources/das/datamodel/DasSequenceSource.java b/src/jalview/ws/dbsources/das/datamodel/DasSequenceSource.java index 5f18331..a63727f 100644 --- a/src/jalview/ws/dbsources/das/datamodel/DasSequenceSource.java +++ b/src/jalview/ws/dbsources/das/datamodel/DasSequenceSource.java @@ -94,7 +94,9 @@ public class DasSequenceSource extends DbSourceProxyImpl implements this.source = source; this.dbname = dbname; this.dbrefname = dbrefname; - this.coordsys = coordsys; + if (coordsys!=null ) { + this.coordsys = coordsys; + } this.connprops=connprops; } @@ -122,7 +124,7 @@ public class DasSequenceSource extends DbSourceProxyImpl implements public String getDbVersion() { - return coordsys.getVersion(); + return coordsys!=null ? coordsys.getVersion() : ""; } public AlignmentI getSequenceRecords(String queries) throws Exception @@ -299,7 +301,7 @@ public class DasSequenceSource extends DbSourceProxyImpl implements public String getTestQuery() { - return coordsys.getTestRange(); + return coordsys==null ? "" : coordsys.getTestRange(); } public boolean isValidReference(String accession) -- 1.7.10.2