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