Author: ndkhoiits
Date: 2011-02-17 05:20:48 -0500 (Thu, 17 Feb 2011)
New Revision: 5906
Modified:
portal/branches/branch-GTNPORTAL-1790/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortlet.java
Log:
GTNPORTAL-1664 NPE if portlet information cannot be retrieved
Modified:
portal/branches/branch-GTNPORTAL-1790/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortlet.java
===================================================================
---
portal/branches/branch-GTNPORTAL-1790/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortlet.java 2011-02-17
10:13:26 UTC (rev 5905)
+++
portal/branches/branch-GTNPORTAL-1790/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortlet.java 2011-02-17
10:20:48 UTC (rev 5906)
@@ -935,10 +935,12 @@
{
producedOfferedPortlet =
portletInvoker.getPortlet(producerOfferedPortletContext);
}
- catch (NoSuchPortletException nspe)
+ catch (Exception exp)
{
+ // Whenever couldn't invoke the portlet object, set the request
portlet to null for the error tobe
+ // properly handled and displayed when the portlet is rendered
producedOfferedPortlet = null;
- nspe.printStackTrace();
+ exp.printStackTrace();
}
this.adapter = adapter;
Show replies by date