portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/util PortletSessionState.java
Date Mon, 29 Jul 2002 04:50:34 GMT
taylor      2002/07/28 21:50:34

  Modified:    src/java/org/apache/jetspeed/util PortletSessionState.java
  Log:
  - check for null ptr
  
  Revision  Changes    Path
  1.2       +11 -2     jakarta-jetspeed/src/java/org/apache/jetspeed/util/PortletSessionState.java
  
  Index: PortletSessionState.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/PortletSessionState.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PortletSessionState.java	26 Apr 2002 18:31:13 -0000	1.1
  +++ PortletSessionState.java	29 Jul 2002 04:50:34 -0000	1.2
  @@ -55,6 +55,7 @@
   package org.apache.jetspeed.util;
   
   import org.apache.turbine.util.RunData;
  +import org.apache.turbine.util.Log;
   import org.apache.jetspeed.portal.portlets.VelocityPortlet;
   import org.apache.jetspeed.portal.PortletConfig;
   
  @@ -99,7 +100,15 @@
        */
       protected static String generateKey(VelocityPortlet portlet, String name)
       {
  -        return (portlet.getID()+"."+name);
  +        if (portlet != null)
  +        {
  +            return (portlet.getID()+"."+name);
  +        }
  +        else
  +        {
  +            Log.error("PortletSessionState: Passed null Velocity Portlet for name: " +
name);
  +            return name;
  +        }
       }
   
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message