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

asf-gitbox-commits pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 75f8d02c17340e12cdfd92ed81f9e640103197de
Author: Damjan Jovanovic <[email protected]>
AuthorDate: Tue Sep 22 20:03:38 2026 +0200

    The typeMap in XRow.getObject() can be null.
    
    Patch by: me
---
 .../src/main/java/com/sun/star/comp/sdbc/JavaSQLResultSet.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/main/connectivity/java/sdbc_jdbc/src/main/java/com/sun/star/comp/sdbc/JavaSQLResultSet.java
 
b/main/connectivity/java/sdbc_jdbc/src/main/java/com/sun/star/comp/sdbc/JavaSQLResultSet.java
index d203cdaae7..d1cbf83883 100644
--- 
a/main/connectivity/java/sdbc_jdbc/src/main/java/com/sun/star/comp/sdbc/JavaSQLResultSet.java
+++ 
b/main/connectivity/java/sdbc_jdbc/src/main/java/com/sun/star/comp/sdbc/JavaSQLResultSet.java
@@ -441,7 +441,7 @@ public class JavaSQLResultSet extends PropertySet
 
     @Override
     public Object getObject(int columnIndex, XNameAccess typeMap) throws 
SQLException {
-        if (typeMap.hasElements()) {
+        if (typeMap != null && typeMap.hasElements()) {
             throw new SQLException(
                     
SharedResources.getInstance().getResourceStringWithSubstitution(
                             Resources.STR_UNSUPPORTED_FEATURE, 
"$featurename$", "Type maps"),

Reply via email to