You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by gg...@apache.org on 2022/11/14 19:45:03 UTC

[xalan-java] branch xalan-j_2_7_1_maint updated: Fix NullPointerException in ElemExtensionCall#execute() when an extension jar is missing from the classpath

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

ggregory pushed a commit to branch xalan-j_2_7_1_maint
in repository https://gitbox.apache.org/repos/asf/xalan-java.git


The following commit(s) were added to refs/heads/xalan-j_2_7_1_maint by this push:
     new 663918ab Fix NullPointerException in ElemExtensionCall#execute() when an extension jar is missing from the classpath
663918ab is described below

commit 663918ab863e98038065a30a8d1738957dd4402d
Author: Gary Gregory <gg...@rocketsoftware.com>
AuthorDate: Mon Nov 14 14:44:50 2022 -0500

    Fix NullPointerException in ElemExtensionCall#execute() when an extension jar is missing from the classpath
---
 src/org/apache/xalan/templates/ElemExtensionCall.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/org/apache/xalan/templates/ElemExtensionCall.java b/src/org/apache/xalan/templates/ElemExtensionCall.java
index be69934b..531f6be9 100644
--- a/src/org/apache/xalan/templates/ElemExtensionCall.java
+++ b/src/org/apache/xalan/templates/ElemExtensionCall.java
@@ -211,7 +211,7 @@ public class ElemExtensionCall extends ElemLiteralResult
       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)
       {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xalan.apache.org
For additional commands, e-mail: commits-help@xalan.apache.org