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/aggregator PortletWindowFactory.java
Date Fri, 16 Jan 2004 19:37:03 GMT
weaver      2004/01/16 11:37:03

  Modified:    portal/src/java/org/apache/jetspeed/aggregator
                        PortletWindowFactory.java
  Log:
  PortletWindow.getWindow() now throws an IllegalArgumentException if
  the PortletDefinition is null
  
  Revision  Changes    Path
  1.11      +6 -1      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/PortletWindowFactory.java
  
  Index: PortletWindowFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/PortletWindowFactory.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- PortletWindowFactory.java	12 Jan 2004 06:39:39 -0000	1.10
  +++ PortletWindowFactory.java	16 Jan 2004 19:37:03 -0000	1.11
  @@ -73,6 +73,11 @@
   {
       public static PortletWindow getWindow(PortletDefinition portletDefinition, String portletName)
       {
  +    	if(portletDefinition == null)
  +    	{
  +    		throw new IllegalArgumentException("PortletDefinition for PortletWindow.getWindow()
cannot be null.");
  +    	}
  +    	
           PortletEntity portletEntity = PortletEntityAccess.getEntity(portletDefinition,
portletName);
   
   
  
  
  

---------------------------------------------------------------------
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