ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject ant git commit: potential NPE
Date Sun, 12 Aug 2018 15:18:56 GMT
Repository: ant
Updated Branches:
  refs/heads/1.9.x ecae55dab -> 0949736bd


potential NPE


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/0949736b
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/0949736b
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/0949736b

Branch: refs/heads/1.9.x
Commit: 0949736bd21582723ba0b5fc3e374d0c76057b7d
Parents: ecae55d
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Sun Aug 12 17:18:31 2018 +0200
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Sun Aug 12 17:18:31 2018 +0200

----------------------------------------------------------------------
 src/main/org/apache/tools/ant/types/resources/Files.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/0949736b/src/main/org/apache/tools/ant/types/resources/Files.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/types/resources/Files.java b/src/main/org/apache/tools/ant/types/resources/Files.java
index a66b8ad..b341291 100644
--- a/src/main/org/apache/tools/ant/types/resources/Files.java
+++ b/src/main/org/apache/tools/ant/types/resources/Files.java
@@ -497,7 +497,7 @@ public class Files extends AbstractSelectorContainer
         String[] includePatterns = ps.getIncludePatterns(getProject());
         String[] excludePatterns = ps.getExcludePatterns(getProject());
         return (includePatterns != null && includePatterns.length > 0)
-            || (includePatterns != null && excludePatterns.length > 0);
+            || (excludePatterns != null && excludePatterns.length > 0);
     }
 
 }


Mime
View raw message