svn commit: r1169701 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/FlexibleMapAccessor.java

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

svn commit: r1169701 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/FlexibleMapAccessor.java

jleroux@apache.org
Author: jleroux
Date: Mon Sep 12 11:47:15 2011
New Revision: 1169701

URL: http://svn.apache.org/viewvc?rev=1169701&view=rev
Log:
Fix a bug introduced in r1169478
Thanks to Hans for reporting on dev ML

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/FlexibleMapAccessor.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/FlexibleMapAccessor.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/FlexibleMapAccessor.java?rev=1169701&r1=1169700&r2=1169701&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/FlexibleMapAccessor.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/FlexibleMapAccessor.java Mon Sep 12 11:47:15 2011
@@ -121,7 +121,7 @@ public class FlexibleMapAccessor<T> impl
      * @return the found value
      */
     public T get(Map<String, ? extends Object> base, Locale locale) {
-        if (UtilValidate.isEmpty(base)) {
+        if (base == null || this.isEmpty()) {
             return null;
         }
         if (!base.containsKey(UelUtil.localizedMapLocaleKey) && locale != null) {