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