From 0ad16a9baa3247d1b2b61c21bbe869ad3feaf34e Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 9 Jun 2013 15:29:43 +0100 Subject: [PATCH] fix for JAL-1298 --- src/jalview/ws/rest/RestJob.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 1.7.10.2