svn commit: r1710348 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java

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

svn commit: r1710348 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java

jleroux@apache.org
Author: jleroux
Date: Sat Oct 24 14:57:13 2015
New Revision: 1710348

URL: http://svn.apache.org/viewvc?rev=1710348&view=rev
Log:
A patch from Christian Carlow for "FindService.performFindList listSize = null causes errors when list is empty because the rendering system expects 0" https://issues.apache.org/jira/browse/OFBIZ-6425

I was testing at catalog/control/FindProduct. I just changed ProductForms.xml#ListProducts service-name from performFind to performFindList. Then upon initially visiting the page the error is displayed.

Modified:
    ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java

Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java?rev=1710348&r1=1710347&r2=1710348&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java Sat Oct 24 14:57:13 2015
@@ -436,7 +436,7 @@ public class FindServices {
 
         int start = viewIndex.intValue() * viewSize.intValue();
         List<GenericValue> list = null;
-        Integer listSize = null;
+        Integer listSize = 0;
         try {
             EntityListIterator it = (EntityListIterator) result.get("listIt");
             list = it.getPartialList(start+1, viewSize); // list starts at '1'