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

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

commit bdedb0f2ecfedfbcb9f5bb2e85c49a81cb125ccc
Author: Damjan Jovanovic <[email protected]>
AuthorDate: Tue Sep 22 20:42:55 2026 +0200

    Read the catalog and schema from the new table object, not the table
    descriptor used to create it. This avoids an exception when the
    table descriptor's CatalogName property returns VOID instead of
    a string.
    
    Patch by: me
    
    (cherry picked from commit 6c6152cef718882dd13b1f34cd72a257d7ce94ca)
---
 main/wizards/com/sun/star/wizards/db/TableDescriptor.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/wizards/com/sun/star/wizards/db/TableDescriptor.java 
b/main/wizards/com/sun/star/wizards/db/TableDescriptor.java
index 1fdf21bdd9..72b5c9c743 100644
--- a/main/wizards/com/sun/star/wizards/db/TableDescriptor.java
+++ b/main/wizards/com/sun/star/wizards/db/TableDescriptor.java
@@ -775,8 +775,8 @@ public class TableDescriptor extends CommandMetaData 
implements XContainerListen
         {
             XPropertySet xTablePropertySet = 
UnoRuntime.queryInterface(XPropertySet.class, arg0.Element);
             String stablename = 
AnyConverter.toString(xTablePropertySet.getPropertyValue(PropertyNames.PROPERTY_NAME));
-            String sschemaname = 
AnyConverter.toString(xPropTableDataDescriptor.getPropertyValue("SchemaName"));
-            String scatalogname = 
AnyConverter.toString(xPropTableDataDescriptor.getPropertyValue("CatalogName"));
+            String sschemaname = 
AnyConverter.toString(xTablePropertySet.getPropertyValue("SchemaName"));
+            String scatalogname = 
AnyConverter.toString(xTablePropertySet.getPropertyValue("CatalogName"));
             ComposedTableName = new CommandName(this, scatalogname, 
sschemaname, stablename, false);
             appendTableNameToFilter(ComposedTableName.getComposedName());
         }

Reply via email to