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