You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by we...@apache.org on 2004/01/19 22:59:41 UTC
cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/invoker PortletInvokerFactoryImpl.java
weaver 2004/01/19 13:59:41
Modified: portal/src/java/org/apache/jetspeed/container/invoker
PortletInvokerFactoryImpl.java
Log:
Throw an IllegalStateException if the PortletDefintion does not have
a PortletApplicationDefinition assigned to it.
Revision Changes Path
1.9 +6 -1 jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/invoker/PortletInvokerFactoryImpl.java
Index: PortletInvokerFactoryImpl.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/invoker/PortletInvokerFactoryImpl.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- PortletInvokerFactoryImpl.java 12 Jan 2004 23:47:01 -0000 1.8
+++ PortletInvokerFactoryImpl.java 19 Jan 2004 21:59:41 -0000 1.9
@@ -136,6 +136,11 @@
JetspeedPortletInvoker invoker = null;
MutablePortletApplication app = (MutablePortletApplication)portletDefinition.getPortletApplicationDefinition();
+ if(app == null)
+ {
+ throw new IllegalStateException("Portlet definition \""+portletDefinition.getName()+"\" is not assigned to a portlet application.");
+ }
+
if (app.getApplicationType() == MutablePortletApplication.LOCAL)
{
// create a local portlet invoker
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org