Change the way to deal with Limits to simplify wrapper writing and enable couping...
[jabaws.git] / webservices / compbio / ws / server / ClustalWS.java
index f13136a..a5fc701 100644 (file)
@@ -155,10 +155,15 @@ public class ClustalWS implements MsaWS<ClustalW> {
        @Override\r
        public Limit<ClustalW> getLimit(String presetName) {\r
                Timer timer = Timer.getMilliSecondsTimer();\r
+               if (limitMan == null) {\r
+                       // No limit is configured\r
+                       return null;\r
+               }\r
                Limit<ClustalW> limit = limitMan.getLimitByName(presetName);\r
                getLogger().logAll(timer, "getLimit");\r
                return limit;\r
        }\r
+\r
        @Override\r
        public LimitsManager<ClustalW> getLimits() {\r
                return limitMan;\r