diff options
author | Ocke Janssen [oj] <Ocke.Janssen@oracle.com> | 2011-03-28 12:10:16 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-10-01 13:55:39 +0200 |
commit | 3e882cf60af64cae76f41ee3373c57e930206827 (patch) | |
tree | 6ec8325ed471234fed49b277fa4461ac2854875e /dbaccess | |
parent | 67e0482236192c18f4ec24f675d13446313d85e4 (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 ); } |