From: jprocter Date: Fri, 31 Aug 2012 10:50:13 +0000 (+0100) Subject: JAL-1015 resolve dataset sequence before searching for annotation X-Git-Tag: Jalview_2_9~366 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c0f6c4074d66aa9563dceab4f63d3b4f37e53c33;p=jalview.git JAL-1015 resolve dataset sequence before searching for annotation --- diff --git a/src/jalview/io/SequenceAnnotationReport.java b/src/jalview/io/SequenceAnnotationReport.java index 8642446..7f46c67 100644 --- a/src/jalview/io/SequenceAnnotationReport.java +++ b/src/jalview/io/SequenceAnnotationReport.java @@ -315,8 +315,12 @@ public class SequenceAnnotationReport tip.append("
" + tmp); maxWidth = Math.max(maxWidth, tmp.length()); } - - DBRefEntry[] dbrefs = sequence.getDatasetSequence().getDBRef(); + SequenceI ds=sequence; + while (ds.getDatasetSequence()!=null) + { + ds=ds.getDatasetSequence(); + } + DBRefEntry[] dbrefs = ds.getDBRef(); if (showDbRefs && dbrefs != null) { for (int i = 0; i < dbrefs.length; i++) @@ -329,8 +333,7 @@ public class SequenceAnnotationReport } // ADD NON POSITIONAL SEQUENCE INFO - SequenceFeature[] features = sequence.getDatasetSequence() - .getSequenceFeatures(); + SequenceFeature[] features = ds.getSequenceFeatures(); SequenceFeature[] tfeat = new SequenceFeature[1]; if (showNpFeats && features != null) {