portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/invoker PortletInvokerFactoryImpl.java
Date Mon, 19 Jan 2004 21:59:41 GMT
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


Mime
View raw message