[EMAIL PROTECTED] wrote:
> ==============================================================================
> --- 
> ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy
>  (original)
> +++ 
> ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy
>  Mon Nov 24 02:43:39 2008
> @@ -33,7 +33,7 @@
>  if ("search".equals(parameters.findType)) {
>      artifactInfoSet = aif.getAllArtifactInfosByNamePartial(name, type);
>      if (artifactInfoSet.size() == 1) {
> -        artifactInfo = artifactInfoSet[0];
> +        artifactInfo = artifactInfoSet.head();
>          context.artifactInfo = artifactInfo;

NONONO.  Bad.

The api for this returns a java.util.Set.  *Only* use methods that are
available on Set(or Collection).  Do not depend on any particular
implementation.


Reply via email to