From 8200d99e0a75b3904f49b7b3d56021cec8516ccd Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Mon, 14 Aug 2023 14:48:00 +0200 Subject: [PATCH] avoid NPE --- core/src/main/java/lucee/runtime/config/ConfigImpl.java | 2 +- loader/build.xml | 2 +- loader/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/lucee/runtime/config/ConfigImpl.java b/core/src/main/java/lucee/runtime/config/ConfigImpl.java index 5b24444dd4..7ca4075c51 100755 --- a/core/src/main/java/lucee/runtime/config/ConfigImpl.java +++ b/core/src/main/java/lucee/runtime/config/ConfigImpl.java @@ -1085,7 +1085,7 @@ protected void setFunctionDirectory(List listFunctionDirectory) { FunctionLib fll = luceeFlds[luceeFlds.length - 1]; // now overwrite with new data - if (path.res.isDirectory()) { + if (path.res != null && path.res.isDirectory()) { String[] files = path.res.list(new ExtensionResourceFilter(Constants.getTemplateExtensions())); for (String file: files) { diff --git a/loader/build.xml b/loader/build.xml index 3b20a361c7..16a7ed6088 100644 --- a/loader/build.xml +++ b/loader/build.xml @@ -2,7 +2,7 @@ - + diff --git a/loader/pom.xml b/loader/pom.xml index 82365a22c0..c7925e1fc0 100644 --- a/loader/pom.xml +++ b/loader/pom.xml @@ -3,7 +3,7 @@ org.lucee lucee - 6.0.0.526-SNAPSHOT + 6.0.0.527-SNAPSHOT jar Lucee Loader Build