Author: julien(a)jboss.com
Date: 2007-03-18 21:50:24 -0400 (Sun, 18 Mar 2007)
New Revision: 6735
Modified:
trunk/portlet/src/main/org/jboss/portal/portlet/impl/container/PortletApplicationContextImpl.java
Log:
if jboss app md does not exist, do not use it.
Modified:
trunk/portlet/src/main/org/jboss/portal/portlet/impl/container/PortletApplicationContextImpl.java
===================================================================
---
trunk/portlet/src/main/org/jboss/portal/portlet/impl/container/PortletApplicationContextImpl.java 2007-03-19
01:09:46 UTC (rev 6734)
+++
trunk/portlet/src/main/org/jboss/portal/portlet/impl/container/PortletApplicationContextImpl.java 2007-03-19
01:50:24 UTC (rev 6735)
@@ -103,9 +103,18 @@
for (Iterator i = portletAppMD.getPortlets().iterator();i.hasNext();)
{
PortletMetaData portletMD = (PortletMetaData)i.next();
- PortletContainerImpl container = new PortletContainerImpl(portletMD,
(JBossPortletMetaData)jbossAppMD.getPortlets().get(portletMD.getName()));
//
+ JBossPortletMetaData jBossPortletMD = null;
+ if (jBossPortletMD != null)
+ {
+ jBossPortletMD =
(JBossPortletMetaData)jbossAppMD.getPortlets().get(portletMD.getName());
+ }
+
+ //
+ PortletContainerImpl container = new PortletContainerImpl(portletMD,
jBossPortletMD);
+
+ //
container.setApplication(portletApp);
portletApp.addContainer(container);