Tag: cws_dev300_dba31b User: oj Date: 2008-08-15 11:36:11+0000 Modified: dba/dbaccess/source/ui/misc/singledoccontroller.cxx
Log: #i55579# return false when the model is null File Changes: Directory: /dba/dbaccess/source/ui/misc/ ======================================== File [changed]: singledoccontroller.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/misc/singledoccontroller.cxx?r1=1.30.24.1&r2=1.30.24.2 Delta lines: +3 -1 ------------------- --- singledoccontroller.cxx 2008-08-13 07:17:49+0000 1.30.24.1 +++ singledoccontroller.cxx 2008-08-15 11:36:09+0000 1.30.24.2 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: singledoccontroller.cxx,v $ - * $Revision: 1.30.24.1 $ + * $Revision: 1.30.24.2 $ * * This file is part of OpenOffice.org. * @@ -481,6 +481,8 @@ // ----------------------------------------------------------------------------- sal_Bool SAL_CALL OSingleDocumentController::attachModel( const Reference< XModel > & _rxModel) throw( RuntimeException ) { + if ( !_rxModel.is() ) + return sal_False; if ( !OSingleDocumentController_Base::attachModel( _rxModel ) ) return sal_False; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
