You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2020/01/16 14:17:41 UTC

[tomcat] branch 9.0.x updated: Fix NPE reported by CI system

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new d3a32d9  Fix NPE reported by CI system
d3a32d9 is described below

commit d3a32d9e6b7018d5a35d7f670a8691b4f9db1799
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Jan 16 14:16:44 2020 +0000

    Fix NPE reported by CI system
---
 java/org/apache/catalina/startup/WebappServiceLoader.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/startup/WebappServiceLoader.java b/java/org/apache/catalina/startup/WebappServiceLoader.java
index dc580d5..0d0bc7a 100644
--- a/java/org/apache/catalina/startup/WebappServiceLoader.java
+++ b/java/org/apache/catalina/startup/WebappServiceLoader.java
@@ -114,7 +114,9 @@ public class WebappServiceLoader<T> {
             // Ordered libs so only use services defined in those libs and any
             // in WEB-INF/classes
             URL unpacked = servletContext.getResource(CLASSES + configFile);
-            parseConfigFile(applicationServicesFound, unpacked);
+            if (unpacked != null) {
+                parseConfigFile(applicationServicesFound, unpacked);
+            }
 
             for (String lib : orderedLibs) {
                 URL jarUrl = servletContext.getResource(LIB + lib);


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org