cppuhelper/source/shlib.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6104316fd50076d41039c33a5338b016e93259fe
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue Apr 30 11:21:04 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Tue Apr 30 18:51:46 2024 +0200

    WaE: C6011 Dereferencing NULL pointer warnings
    
    Change-Id: If4f035fef1e13780b6ce14477ccb2bd7b0eab133
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166829
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/cppuhelper/source/shlib.cxx b/cppuhelper/source/shlib.cxx
index b6885cbed770..c1a66ae66704 100644
--- a/cppuhelper/source/shlib.cxx
+++ b/cppuhelper/source/shlib.cxx
@@ -248,7 +248,7 @@ void cppuhelper::detail::loadSharedLibComponentFactory(
     assert(constructor.isEmpty() || !environment.isEmpty());
     assert(
         (constructorFunction == nullptr && constructor.isEmpty())
-        || !*constructorFunction);
+        || (constructorFunction && !*constructorFunction));
     assert(factory != nullptr && !factory->is());
 #if defined DISABLE_DYNLOADING
     assert(!environment.isEmpty());

Reply via email to