From: Jim Procter Date: Sun, 9 Jun 2013 14:29:43 +0000 (+0100) Subject: fix for JAL-1298 X-Git-Tag: Jalview_2_9~247^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0ad16a9baa3247d1b2b61c21bbe869ad3feaf34e;p=jalview.git fix for JAL-1298 --- diff --git a/src/jalview/ws/rest/RestJob.java b/src/jalview/ws/rest/RestJob.java index 2392e76..c89f241 100644 --- a/src/jalview/ws/rest/RestJob.java +++ b/src/jalview/ws/rest/RestJob.java @@ -106,11 +106,11 @@ public class RestJob extends AWsJob } else { - // TODO: move validation of input data to SeqGroupIndexVector - if ((prm.getValue() instanceof SeqGroupIndexVector) - && (_input.getGroups() != null && _input.getGroups() - .size() >= prm.getValue().min)) + if (prm.getValue() instanceof SeqGroupIndexVector + && _input.getGroups() != null + && _input.getGroups().size() >= -1 + prm.getValue().min) { + // the test above is not rigorous but fixes JAL-1298, since submission will fail if the partition set doesn't contain at least one partition alinp.add(prm.getValue()); } else