Author: erwan
Date: Fri Oct 8 16:01:42 2010
New Revision: 1005875
URL:
http://svn.apache.org/viewvc?rev=1005875&view=revLog:
Avoiding error when trying to edit a portalPage with no portlets
Modified:
ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy
Modified: ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy?rev=1005875&r1=1005874&r2=1005875&view=diff==============================================================================
--- ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy (original)
+++ ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy Fri Oct 8 16:01:42 2010
@@ -106,6 +106,8 @@ if (parameters.userLogin) {
context.portalPages = portalPages;
context.userLoginSecurityGroupId = userLoginSecurityGroupId;
- parameters.portalPagesSize = portalPages.get(portalPages.size()-1).sequenceNum;
+ if (portalPages) {
+ parameters.portalPagesSize = portalPages.get(portalPages.size()-1).sequenceNum;
+ }
}