[gatein-commits] gatein SVN: r2264 - portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Mar 15 14:16:47 EDT 2010
Author: mwringe
Date: 2010-03-15 14:16:46 -0400 (Mon, 15 Mar 2010)
New Revision: 2264
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java
Log:
GTNPORTAL-895: we need to check if the portlet exception handler exists before trying to make it handler an exception, otherwise we get an NPE.
Modified: portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java
===================================================================
--- portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java 2010-03-15 18:10:12 UTC (rev 2263)
+++ portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java 2010-03-15 18:16:46 UTC (rev 2264)
@@ -290,7 +290,8 @@
PortletExceptionHandleService portletExceptionService =
(PortletExceptionHandleService)container
.getComponentInstanceOfType(PortletExceptionHandleService.class);
- portletExceptionService.handle(pcException);
+ if (portletExceptionService != null)
+ portletExceptionService.handle(pcException);
markup = Text.create("This portlet encountered an error and could not be displayed.");
}
More information about the gatein-commits
mailing list