From: jprocter Date: Thu, 27 Oct 2005 17:04:27 +0000 (+0000) Subject: fixed exception thrown when msa web service is applied to alignment with sequence... X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=39ef69a1e99aac47b3737f57605f68029ec4d897;p=jalview.git fixed exception thrown when msa web service is applied to alignment with sequence features. --- diff --git a/src/jalview/analysis/SeqsetUtils.java b/src/jalview/analysis/SeqsetUtils.java index bd0f45c..11a31be 100755 --- a/src/jalview/analysis/SeqsetUtils.java +++ b/src/jalview/analysis/SeqsetUtils.java @@ -49,7 +49,7 @@ public class SeqsetUtils sqinfo.put("Name", seq.getName()); sqinfo.put("Start", new Integer(seq.getStart())); sqinfo.put("End", new Integer(seq.getEnd())); - sqinfo.put("SeqFeatures", seq.getSequenceFeatures()); + sqinfo.put("SeqFeatures", (seq.getSequenceFeatures() !=null) ? seq.getSequenceFeatures() : new Vector()); sqinfo.put("PdbId", (seq.getPDBId() != null) ? seq.getPDBId() : new String("")); @@ -93,7 +93,7 @@ public class SeqsetUtils sq.setEnd(end.intValue()); } - if (sfeatures != null) + if ((sfeatures != null) && (sfeatures.size()>0)) { sq.setSequenceFeatures(sfeatures); }