diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-03 19:50:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-04 22:21:59 +0200 |
commit | f54edfb023d9007faa23b6b6ffa1f4d47ccd1fac (patch) | |
tree | 6a25dce63a65627ae2c96cdc21ca2e6ab72cf45e /dbaccess | |
parent | 44e81831dfc194b60b6d0c89ba275669e23c443e (diff) |
tdf#136442 a null return from GetEntryPosByName is allowed
Change-Id: Id3e5255f1551eaa3e2f2bbd314634bdf921bffac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102022
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
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)) |