svn commit: r743998 - /ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ShowPortalPage.groovy

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

svn commit: r743998 - /ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ShowPortalPage.groovy

hansbak-2
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;
     }
 }