incubator-droids-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r1452341 - /incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/helper/factories/FilterFactory.java
Date Mon, 04 Mar 2013 15:08:41 GMT
Author: thorsten
Date: Mon Mar  4 15:08:41 2013
New Revision: 1452341

URL: http://svn.apache.org/r1452341
Log:
Preventing NPE and add early exit for the filter chain.

Modified:
    incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/helper/factories/FilterFactory.java

Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/helper/factories/FilterFactory.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/helper/factories/FilterFactory.java?rev=1452341&r1=1452340&r2=1452341&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/helper/factories/FilterFactory.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/helper/factories/FilterFactory.java
Mon Mar  4 15:08:41 2013
@@ -47,6 +47,9 @@ public class FilterFactory {
             logger.debug("filter task: " + task.getURI());
         }
         for (Filter<T> filter : filters) {
+            if(null == task){
+                return null;
+            }
             task = filter.filter(task);
             if (logger.isDebugEnabled()) {
                 logger.debug(filter.getClass().getSimpleName() + task);



Mime
View raw message