Commits

Ocke Janssen [oj]  committed 109e42e

fs34b: #i117552# check if query before call getByName in every case

  • Participants
  • Parent commits 5a87103

Comments (0)

Files changed (1)

File dbaccess/source/ui/browser/unodatbr.cxx

 		{
 			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 );
 			}