From 8773fa2d821acd2f16c196cf41f119ac08080ccb Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 14 Nov 2022 14:44:50 -0500 Subject: [PATCH] Fix NullPointerException in ElemExtensionCall#execute() when an extension jar is missing from the classpath (cherry picked from commit 663918ab863e98038065a30a8d1738957dd4402d) --- .../main/java/org/apache/xalan/templates/ElemExtensionCall.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/echoxsl/src/main/java/org/apache/xalan/templates/ElemExtensionCall.java b/echoxsl/src/main/java/org/apache/xalan/templates/ElemExtensionCall.java index be69934b9..531f6be96 100644 --- a/echoxsl/src/main/java/org/apache/xalan/templates/ElemExtensionCall.java +++ b/echoxsl/src/main/java/org/apache/xalan/templates/ElemExtensionCall.java @@ -211,7 +211,7 @@ public void execute(TransformerImpl transformer) transformer.getResultTreeHandler().flushPending(); ExtensionsTable etable = transformer.getExtensionsTable(); - ExtensionHandler nsh = etable.get(m_extns); + ExtensionHandler nsh = etable != null ? etable.get(m_extns) : null; if (null == nsh) {