ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gin...@apache.org
Subject ant git commit: Potential NPE
Date Sun, 12 Aug 2018 12:52:35 GMT
Repository: ant
Updated Branches:
  refs/heads/master 5566a8e5e -> d92e553d8


Potential NPE

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

Branch: refs/heads/master
Commit: d92e553d801f3fab01a7ad1cc7745ddff1088ae7
Parents: 5566a8e
Author: Gintas Grigelionis <gintas@apache.org>
Authored: Sun Aug 12 14:50:05 2018 +0200
Committer: Gintas Grigelionis <gintas@apache.org>
Committed: Sun Aug 12 14:50:05 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/d92e553d/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 ed56f4d..cce9049 100644
--- a/src/main/org/apache/tools/ant/types/resources/Files.java
+++ b/src/main/org/apache/tools/ant/types/resources/Files.java
@@ -481,7 +481,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