From 39ef69a1e99aac47b3737f57605f68029ec4d897 Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 27 Oct 2005 17:04:27 +0000 Subject: [PATCH] fixed exception thrown when msa web service is applied to alignment with sequence features. --- src/jalview/analysis/SeqsetUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 1.7.10.2