This is an automated email from the ASF dual-hosted git repository.
baedke pushed a commit to branch OAK-12066
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/OAK-12066 by this push:
new 05176fc7fc OAK-12066: NPE in AstElement "quote()"
05176fc7fc is described below
commit 05176fc7fcdc722a7478ba90cf609e1dcbadce4c
Author: Manfred Baedke <[email protected]>
AuthorDate: Wed Jan 28 11:19:00 2026 +0100
OAK-12066: NPE in AstElement "quote()"
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")) {