Tag: cws_ooo300_dba301a User: oj Date: 2008-10-30 09:24:35+0000 Modified: dba/dbaccess/source/ui/querydesign/TableWindowAccess.cxx
Log: #i92253# lock mutex before clear m_pTable File Changes: Directory: /dba/dbaccess/source/ui/querydesign/ =============================================== File [changed]: TableWindowAccess.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/querydesign/TableWindowAccess.cxx?r1=1.14.34.1&r2=1.14.34.2 Delta lines: +5 -2 ------------------- --- TableWindowAccess.cxx 2008-08-12 07:21:52+0000 1.14.34.1 +++ TableWindowAccess.cxx 2008-10-30 09:24:32+0000 1.14.34.2 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: TableWindowAccess.cxx,v $ - * $Revision: 1.14.34.1 $ + * $Revision: 1.14.34.2 $ * * This file is part of OpenOffice.org. * @@ -95,7 +95,10 @@ void OTableWindowAccess::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) { if ( rVclWindowEvent.GetId() == VCLEVENT_OBJECT_DYING ) + { + ::osl::MutexGuard aGuard( m_aMutex ); m_pTable = NULL; + } VCLXAccessibleComponent::ProcessWindowEvent( rVclWindowEvent ); } @@ -263,7 +266,7 @@ { ::osl::MutexGuard aGuard( m_aMutex ); return AccessibleRelationType::CONTROLLER_FOR == aRelationType - && m_pTable->getTableView()->ExistsAConn(m_pTable); + && m_pTable && m_pTable->getTableView()->ExistsAConn(m_pTable); } // ----------------------------------------------------------------------------- AccessibleRelation SAL_CALL OTableWindowAccess::getRelationByType( sal_Int16 aRelationType ) throw (RuntimeException) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]