This is an automated email from the ASF dual-hosted git repository.
tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 7b3456a OWB-1398 possible NPE
7b3456a is described below
commit 7b3456aebb920fc063f4033d95e11342198c0a9a
Author: Thomas Andraschko <[email protected]>
AuthorDate: Mon Dec 13 13:40:00 2021 +0100
OWB-1398 possible NPE
---
.../apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
index d2b2ebe..40ef8d0 100644
---
a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
+++
b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java
@@ -315,6 +315,10 @@ public abstract class AbstractMetaDataDiscovery implements
BdaScannerService
protected Map<File, URL> filterExcludedJars(Map<File, URL> classpathFiles)
{
+ if (classpathFiles == null)
+ {
+ return null;
+ }
return classpathFiles.entrySet().stream()
.filter(e -> !isExcludedJar(e.getValue()))
.collect(Collectors.toMap(p -> p.getKey(), p -> p.getValue()));