diff options
author | Ocke Janssen [oj] <Ocke.Janssen@oracle.com> | 2011-03-28 12:10:16 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-09-29 15:07:42 +0100 |
commit | de53823101479e88d23963aa66e2ad64ebfa29cd (patch) | |
tree | 03789c4e5d0e0f3045d776d58f5916206b4cd827 /dbaccess | |
parent | 5071a19385f3999539cfb60a333df405a34036fa (diff) |
fs34b: #i117552# check if query before call getByName in every case
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/browser/unodatbr.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index 6000c5a49538..843114fbb351 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -2184,12 +2184,13 @@ void SbaTableQueryBrowser::populateTree(const Reference<XNameAccess>& _xNameAcce { if( !m_pTreeView->getListBox().GetEntryPosByName(*pIter,_pParent)) { - Reference<XNameAccess> xChild(_xNameAccess->getByName(*pIter),UNO_QUERY); DBTreeListUserData* pEntryData = new DBTreeListUserData; pEntryData->eType = _eEntryType; - if ( _eEntryType == etQuery && xChild.is() ) + if ( _eEntryType == etQuery ) { - pEntryData->eType = etQueryContainer; + Reference<XNameAccess> xChild(_xNameAccess->getByName(*pIter),UNO_QUERY); + if ( xChild.is() ) + pEntryData->eType = etQueryContainer; } implAppendEntry( _pParent, *pIter, pEntryData, pEntryData->eType ); } |