include/comphelper/interfacecontainer4.hxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 4f3d989a40a7083ce25a0ccddd711f7a045844b6
Author:     Mike Kaganski <[email protected]>
AuthorDate: Wed Aug 3 09:59:21 2022 +0200
Commit:     Mike Kaganski <[email protected]>
CommitDate: Wed Aug 3 19:40:46 2022 +0200

    This must be non-null
    
    Change-Id: Id62b3c9e4bc9b6fd4bcc2cc9019d94db310adac1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137719
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/include/comphelper/interfacecontainer4.hxx 
b/include/comphelper/interfacecontainer4.hxx
index 694e5b17bbca..20429954d56d 100644
--- a/include/comphelper/interfacecontainer4.hxx
+++ b/include/comphelper/interfacecontainer4.hxx
@@ -23,6 +23,7 @@
 #include <com/sun/star/lang/EventObject.hpp>
 #include <com/sun/star/lang/DisposedException.hpp>
 #include <o3tl/cow_wrapper.hxx>
+#include <cassert>
 #include <mutex>
 #include <vector>
 
@@ -259,6 +260,7 @@ private:
             : m_pMethod(method)
             , m_rEvent(event)
         {
+            assert(m_pMethod);
         }
 
         void operator()(const css::uno::Reference<ListenerT>& listener) const

Reply via email to