diff options
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/browser/unodatbr.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index 115a378e8f26..fa9ec7994aee 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -1158,7 +1158,10 @@ std::unique_ptr<weld::TreeIter> SbaTableQueryBrowser::getObjectEntry(const OUStr assert(false); } xObject = m_pTreeView->GetEntryPosByName(sPath, xCommandType.get()); - rTreeView.copy_iterator(*xObject, *xCommandType); + if (xObject) + rTreeView.copy_iterator(*xObject, *xCommandType); + else + xCommandType.reset(); if ( nIndex >= 0 ) { if (ensureEntryObject(*xObject)) |