svn commit: r940849 - /ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/FindAutocompleteOptions.groovy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r940849 - /ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/FindAutocompleteOptions.groovy

jleroux@apache.org
Author: jleroux
Date: Tue May  4 13:32:21 2010
New Revision: 940849

URL: http://svn.apache.org/viewvc?rev=940849&view=rev
Log:
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) {