Change the way to deal with Limits to simplify wrapper writing and enable couping...
[jabaws.git] / webservices / compbio / ws / server / MafftWS.java
index 0c8347d..83c5758 100644 (file)
@@ -127,6 +127,10 @@ public class MafftWS implements MsaWS<Mafft> {
 \r
        @Override\r
        public Limit<Mafft> getLimit(String presetName) {\r
+               if (limitMan == null) {\r
+                       // Limit is not defined\r
+                       return null;\r
+               }\r
                return limitMan.getLimitByName(presetName);\r
        }\r
 \r