svn commit: r834667 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/NumberConverters.java

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

svn commit: r834667 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/NumberConverters.java

adrianc
Author: adrianc
Date: Tue Nov 10 21:08:31 2009
New Revision: 834667

URL: http://svn.apache.org/viewvc?rev=834667&view=rev
Log:
Revert unintended change.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/NumberConverters.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/NumberConverters.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/NumberConverters.java?rev=834667&r1=834666&r2=834667&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/NumberConverters.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/NumberConverters.java Tue Nov 10 21:08:31 2009
@@ -710,9 +710,6 @@
     public static class StringToLong extends AbstractToNumberConverter<String, Long> {
 
         public Long convert(String obj, Locale locale, TimeZone timeZone) throws ConversionException {
-            if (obj.length() == 0) {
-                return null;
-            }
             return this.fromString(obj, locale).longValue();
         }