[hidden email] wrote:
> Author: lektran
> Date: Mon Aug 25 12:58:12 2008
> New Revision: 688854
>
> URL:
http://svn.apache.org/viewvc?rev=688854&view=rev> Log:
> Another groovy fix, this is actually more of a problem with the ModelService class which implements the Map interface but when groovy tries to determine the size of the map, the entrySet() call unexpectedly returns null
I've got a slightly different 'fix' for this. I needed proper
implementation of hashCode() and equals(); they also failed when
entrySet() returned null.
So, I implemented entrySet() properly. But haven't yet checked it in.
>
> Modified:
> ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/service/AvailableServices.groovy
>
> Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/service/AvailableServices.groovy
> URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/service/AvailableServices.groovy?rev=688854&r1=688853&r2=688854&view=diff> ==============================================================================
> --- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/service/AvailableServices.groovy (original)
> +++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/service/AvailableServices.groovy Mon Aug 25 12:58:12 2008
> @@ -482,7 +482,7 @@
> curServiceModel = curDispatchContext.getModelService(serviceName);
>
> canIncludeService = true;
> - if (constraint && curServiceModel) {
> + if (constraint && curServiceModel != null) {
> consArr = constraint.split("@");
> constraintName = consArr[0];
> constraintVal = consArr[1];
>
>