openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1855740 - /openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/tomcat/OWBJarScanner.java
Date Mon, 18 Mar 2019 09:05:18 GMT
Author: rmannibucau
Date: Mon Mar 18 09:05:18 2019
New Revision: 1855740

URL: http://svn.apache.org/viewvc?rev=1855740&view=rev
Log:
avoid npe if tomcat filter is null

Modified:
    openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/tomcat/OWBJarScanner.java

Modified: openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/tomcat/OWBJarScanner.java
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/tomcat/OWBJarScanner.java?rev=1855740&r1=1855739&r2=1855740&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/tomcat/OWBJarScanner.java
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/tomcat/OWBJarScanner.java
Mon Mar 18 09:05:18 2019
@@ -50,7 +50,7 @@ public class OWBJarScanner implements Ja
                             try {
                                 final URL url = new URL(u);
                                 final File asFile = Files.toFile(url);
-                                if (!filter.check(jarScanType, asFile.getName())) {
+                                if (filter != null && !filter.check(jarScanType,
asFile.getName())) {
                                     return;
                                 }
 



Mime
View raw message