dbaccess/source/core/dataaccess/databasecontext.cxx |    5 -----
 1 file changed, 5 deletions(-)

New commits:
commit c81713ea1a13bf732f97f5e449705541a2892e7e
Author:     Samuel Mehrbrodt <[email protected]>
AuthorDate: Mon Feb 23 15:14:48 2026 +0100
Commit:     Samuel Mehrbrodt <[email protected]>
CommitDate: Mon Mar 9 13:05:55 2026 +0100

    remove bogus assert
    
    A data source can legitimately have a non-empty name but not be
    registered in the object cache, e.g. when loading fails before
    attachResource is called, or during context disposal.
    
    This removes warnings like:
      
warn:legacy.osl:1611319:1611319:dbaccess/source/core/dataaccess/databasecontext.cxx:489:
 ODatabaseContext::storeTransientProperties: a non-empty data source which I do 
not know?!
    
    Change-Id: I75e878107396d984f2fcf3d7d6a6e7678bc9b0c0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200060
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <[email protected]>
    (cherry picked from commit 7f9e03fb5305cb1b1ffd568c2400e16a7e17f37d)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201260
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/dbaccess/source/core/dataaccess/databasecontext.cxx 
b/dbaccess/source/core/dataaccess/databasecontext.cxx
index f6dfcfed57c4..17409743db65 100644
--- a/dbaccess/source/core/dataaccess/databasecontext.cxx
+++ b/dbaccess/source/core/dataaccess/databasecontext.cxx
@@ -484,11 +484,6 @@ void ODatabaseContext::storeTransientProperties( 
ODatabaseModelImpl& _rModelImpl
             // all the code should have been changed so that registration is 
by URL only
         m_aDatasourceProperties[ _rModelImpl.m_sName ] = 
aRememberProps.getPropertyValues();
     }
-    else
-    {
-        OSL_ENSURE(  sDocumentURL.isEmpty()  &&  _rModelImpl.m_sName.isEmpty() 
,
-            "ODatabaseContext::storeTransientProperties: a non-empty data 
source which I do not know?!" );
-    }
 }
 
 void SAL_CALL ODatabaseContext::addContainerListener( const Reference< 
XContainerListener >& _rxListener )

Reply via email to