svn commit: r1094600 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java

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

svn commit: r1094600 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java

jleroux@apache.org
Author: jleroux
Date: Mon Apr 18 14:40:15 2011
New Revision: 1094600

URL: http://svn.apache.org/viewvc?rev=1094600&view=rev
Log:
Slight improvement to prevent false error messages when putting spaces in readers names, eg after commas for istance


Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java?rev=1094600&r1=1094599&r2=1094600&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataLoader.java Mon Apr 18 14:40:15 2011
@@ -98,7 +98,7 @@ public class EntityDataLoader {
                 }
 
                 // get all of the main resource model stuff, ie specified in the entityengine.xml file
-                EntityDataReaderInfo entityDataReaderInfo = EntityConfigUtil.getEntityDataReaderInfo(readerName);
+                EntityDataReaderInfo entityDataReaderInfo = EntityConfigUtil.getEntityDataReaderInfo(readerName.trim());
 
                 if (entityDataReaderInfo == null) {
                     Debug.logInfo("Could not find entity-data-reader named: " + readerName + ". Creating a new reader with this name. ", module);