You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2009/02/13 06:45:22 UTC
svn commit: r743998 -
/ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ShowPortalPage.groovy
Author: hansbak
Date: Fri Feb 13 05:45:22 2009
New Revision: 743998
URL: http://svn.apache.org/viewvc?rev=743998&view=rev
Log:
fix NPE error reported by BJ Freeman in the mailing list
Modified:
ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ShowPortalPage.groovy
Modified: ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ShowPortalPage.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ShowPortalPage.groovy?rev=743998&r1=743997&r2=743998&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ShowPortalPage.groovy (original)
+++ ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ShowPortalPage.groovy Fri Feb 13 05:45:22 2009
@@ -29,7 +29,7 @@
if (portalPageId) {
portalPage = delegator.findByPrimaryKey("PortalPage", [portalPageId : portalPageId]);
- if (portalPage.parentPortalPageId && !parameters.parentPortalPageId) {
+ if (portalPage && portalPage.parentPortalPageId && !parameters.parentPortalPageId) {
parameters.parentPortalPageId = portalPage.parentPortalPageId;
}
}