You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/01/03 15:18:01 UTC
svn commit: r1428355 -
/tomcat/trunk/java/org/apache/jasper/util/FastRemovalDequeue.java
Author: markt
Date: Thu Jan 3 14:18:01 2013
New Revision: 1428355
URL: http://svn.apache.org/viewvc?rev=1428355&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54260
Avoid NPE when using JSP unloading and tag files.
Modified:
tomcat/trunk/java/org/apache/jasper/util/FastRemovalDequeue.java
Modified: tomcat/trunk/java/org/apache/jasper/util/FastRemovalDequeue.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/util/FastRemovalDequeue.java?rev=1428355&r1=1428354&r2=1428355&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/util/FastRemovalDequeue.java (original)
+++ tomcat/trunk/java/org/apache/jasper/util/FastRemovalDequeue.java Thu Jan 3 14:18:01 2013
@@ -174,7 +174,7 @@ public class FastRemovalDequeue<T> {
* Removes any element of the list and returns its content.
**/
public synchronized void remove(final Entry element) {
- if (!element.getValid()) {
+ if (element == null || !element.getValid()) {
return;
}
Entry next = element.getNext();
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org