Author: thomas.heute(a)jboss.com
Date: 2009-04-14 15:10:37 -0400 (Tue, 14 Apr 2009)
New Revision: 13212
Modified:
branches/Enterprise_Portal_Platform_4_3/core-cms/src/main/org/jboss/portal/core/cms/ui/CMSPortlet.java
Log:
JBQA-2181: NPE on denied access
Modified:
branches/Enterprise_Portal_Platform_4_3/core-cms/src/main/org/jboss/portal/core/cms/ui/CMSPortlet.java
===================================================================
---
branches/Enterprise_Portal_Platform_4_3/core-cms/src/main/org/jboss/portal/core/cms/ui/CMSPortlet.java 2009-04-14
19:09:43 UTC (rev 13211)
+++
branches/Enterprise_Portal_Platform_4_3/core-cms/src/main/org/jboss/portal/core/cms/ui/CMSPortlet.java 2009-04-14
19:10:37 UTC (rev 13212)
@@ -320,7 +320,7 @@
PrintWriter writer = resp.getWriter();
String sHTML = "";
ResourceBundle rb = getPortletConfig().getResourceBundle(req.getLocale());
- String path = file.getBasePath();
+ String path = req.getParameter(RENDER_PARAMETER_PATH);
if (path == null || path.trim().length() == 0)
{
sHTML = "<h2>" +
rb.getString("CMS_ACCESS_DENIED")+ "</h2>" +
rb.getString("CMS_ACCESS_DENIED_DESCRIPTION");