Tag: cws_src680_odbmacros2
User: fs      
Date: 2007-12-19 11:03:48+0000
Modified:
   dba/dbaccess/source/core/dataaccess/ModelImpl.cxx

Log:
 objectHasMacros: care for non-existent storages

File Changes:

Directory: /dba/dbaccess/source/core/dataaccess/
================================================

File [changed]: ModelImpl.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/ModelImpl.cxx?r1=1.21.2.3&r2=1.21.2.4
Delta lines:  +5 -2
-------------------
--- ModelImpl.cxx       2007-12-12 09:54:55+0000        1.21.2.3
+++ ModelImpl.cxx       2007-12-19 11:03:45+0000        1.21.2.4
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: ModelImpl.cxx,v $
  *
- *  $Revision: 1.21.2.3 $
+ *  $Revision: 1.21.2.4 $
  *
- *  last change: $Author: fs $ $Date: 2007/12/12 09:54:55 $
+ *  last change: $Author: fs $ $Date: 2007/12/19 11:03:45 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -513,6 +513,9 @@
 {
     OSL_PRECOND( _rxContainerStorage.is(), 
"ODatabaseModelImpl::objectHasMacros: this will crash!" );
 
+    if ( !_rxContainerStorage->hasByName( _rPersistentName ) )
+        return false;
+
     SharedStorage xObjectStor( _rxContainerStorage->openStorageElement(
         _rPersistentName, ElementModes::READ ) );
 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to