diff options
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableController.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx index f17ff9b7aca3..f75b3e8b8ffe 100644 --- a/dbaccess/source/ui/tabledesign/TableController.cxx +++ b/dbaccess/source/ui/tabledesign/TableController.cxx @@ -774,6 +774,8 @@ void OTableController::appendPrimaryKey(Reference<XKeysSupplier>& _rxSup,sal_Boo OSL_ENSURE(_rxSup.is(),"No XKeysSupplier!"); Reference<XIndexAccess> xKeys(_rxSup->getKeys(),UNO_QUERY); Reference<XPropertySet> xProp; + if (!xKeys.is()) + return; const sal_Int32 nCount = xKeys->getCount(); for(sal_Int32 i=0;i< nCount ;++i) { |