Author: chris.laprun(a)jboss.com
Date: 2008-07-01 17:19:51 -0400 (Tue, 01 Jul 2008)
New Revision: 11241
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/content/InternalContentProvider.java
Log:
- Deal more gracefully with missing portlets.
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/content/InternalContentProvider.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/content/InternalContentProvider.java 2008-07-01
21:18:01 UTC (rev 11240)
+++
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/content/InternalContentProvider.java 2008-07-01
21:19:51 UTC (rev 11241)
@@ -63,7 +63,6 @@
import org.w3c.dom.Element;
import javax.portlet.MimeResponse;
-
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
@@ -180,16 +179,14 @@
try
{
- /*
// Check that the associated portlet is deployed
Instance portletInstance = getPortletInstance(rendererContext);
if (portletInstance == null)
{
- throw new NoSuchPortletException("");
+ log.debug("Portlet associated with " + rendererContext.getWindow()
+ " window could not be found!");
+ throw new NoSuchPortletException("Portlet associated with " +
rendererContext.getWindow() + " window could not be found!");
}
portletInstance.getPortlet();
-*/
- getPortletInstance(rendererContext).getPortlet();
}
catch (PortletInvokerException e)
{