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

baedke pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 40edfb336f OAK-12066: NPE in AstElement "quote()" (#2708)
40edfb336f is described below

commit 40edfb336ff06157eaf6118730bf237b43d61c3f
Author: mbaedke <[email protected]>
AuthorDate: Thu Feb 12 11:24:40 2026 +0100

    OAK-12066: NPE in AstElement "quote()" (#2708)
    
    Added diagnostic logging.
---
 .../src/main/java/org/apache/jackrabbit/oak/query/SQL2Parser.java     | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/oak-core/src/main/java/org/apache/jackrabbit/oak/query/SQL2Parser.java 
b/oak-core/src/main/java/org/apache/jackrabbit/oak/query/SQL2Parser.java
index 79d7342989..11409c9509 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/query/SQL2Parser.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/query/SQL2Parser.java
@@ -305,6 +305,10 @@ public class SQL2Parser {
         if (!nodeTypeInfo.exists()) {
             throw getSyntaxError("unknown node type");
         }
+        //diagnostic log message to help identifying the root cause of 
OAK-12066
+        if (nodeTypeInfo.getNodeTypeName() == null) {
+            LOG.warn("Existing node type {} without jcr:nodeTypeName found.", 
nodeTypeName);
+        }
 
         String selectorName = nodeTypeName;
         if (readIf("AS")) {

Reply via email to