ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hans...@apache.org
Subject svn commit: r743998 - /ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ShowPortalPage.groovy
Date Fri, 13 Feb 2009 05:45:22 GMT
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;
     }
 }



Mime
View raw message