svn commit: r773145 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/FlexibleStringExpander.java

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

svn commit: r773145 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/FlexibleStringExpander.java

adrianc
Author: adrianc
Date: Sat May  9 00:40:28 2009
New Revision: 773145

URL: http://svn.apache.org/viewvc?rev=773145&view=rev
Log:
Small improvement to FlexibleStringExpander.java to help cut down on error messages.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/FlexibleStringExpander.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/FlexibleStringExpander.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/FlexibleStringExpander.java?rev=773145&r1=773144&r2=773145&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/FlexibleStringExpander.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/FlexibleStringExpander.java Sat May  9 00:40:28 2009
@@ -384,6 +384,9 @@
             for (StrElem elem : this.strElems) {
                 elem.append(expr, context, timeZone, locale);
             }
+            if (expr.length() == 0) {
+                return;
+            }
             if (expr.length() > this.hint) {
                 synchronized(this) {
                     this.hint = expr.length();