Author: jleroux
Date: Tue May 4 13:32:21 2010
New Revision: 940849
URL:
http://svn.apache.org/viewvc?rev=940849&view=revLog:
Fix a non visible NPE
Modified:
ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/FindAutocompleteOptions.groovy
Modified: ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/FindAutocompleteOptions.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/FindAutocompleteOptions.groovy?rev=940849&r1=940848&r2=940849&view=diff==============================================================================
--- ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/FindAutocompleteOptions.groovy (original)
+++ ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/FindAutocompleteOptions.groovy Tue May 4 13:32:21 2010
@@ -31,7 +31,7 @@ entityName = context.entityName;
searchFields = context.searchFields;
displayFields = context.displayFields ?: searchFields;
searchValueFieldName = parameters.searchValueField;
-fieldValue = parameters.get(searchValueFieldName);
+if (searchValueFieldName) fieldValue = parameters.get(searchValueFieldName);
searchType = context.searchType;
if (searchFields && fieldValue) {