tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r668854 - /tomcat/trunk/java/org/apache/catalina/session/StandardSession.java
Date Tue, 17 Jun 2008 22:13:00 GMT
Author: markt
Date: Tue Jun 17 15:13:00 2008
New Revision: 668854

URL: http://svn.apache.org/viewvc?rev=668854&view=rev
Log:
Additional check related to bug 45195.

Modified:
    tomcat/trunk/java/org/apache/catalina/session/StandardSession.java

Modified: tomcat/trunk/java/org/apache/catalina/session/StandardSession.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/session/StandardSession.java?rev=668854&r1=668853&r2=668854&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/session/StandardSession.java (original)
+++ tomcat/trunk/java/org/apache/catalina/session/StandardSession.java Tue Jun 17 15:13:00
2008
@@ -1636,6 +1636,9 @@
      */
     protected void removeAttributeInternal(String name, boolean notify) {
 
+        // Avoid NPE
+        if (name == null) return;
+
         // Remove this attribute from our collection
         Object value = attributes.remove(name);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message