/[Apache-SVN]
ViewVC logotype

Revision 1795342


Jump to revision: Previous Next
Author: deepak
Date: Tue May 16 17:20:24 2017 UTC (6 years, 11 months ago)
Changed paths: 3
Log Message:
Improved: Inconsistent String Comparisons, Applied framework groovy patch from jira issue. (OFBIZ-9254)

I found an inconsistency in the code for string comparison statusId.equals("PRUN_COMPLETED") whereas it should be written as "PRUN_COMPLETED".equals(statusId) cause the former can throw NullPointerException if the variable found to be NULL.

Thanks Devanshu Vyas for your contribution.

Changed paths

Path Details
Directoryofbiz/ofbiz-framework/trunk/framework/common/groovyScripts/SetLocaleFromBrowser.groovy modified , text changed
Directoryofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/entity/ViewGeneric.groovy modified , text changed
Directoryofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/service/AvailableServices.groovy modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26