[Libreoffice-commits] core.git: writerfilter/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Jan 14 13:52:44 UTC 2021


 writerfilter/source/dmapper/DomainMapper_Impl.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit bcca21c44d22315af579cad6a404fea43de31bc9
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jan 14 09:41:42 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jan 14 14:51:58 2021 +0100

    cid#1470700 try to help coverity see 'Using invalid iterator' is false
    
    Change-Id: I04f3d2779db32cc5ca3d6303d146d017aa4f5ef4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109265
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 59f856801c05..f41f03a09a41 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -1742,6 +1742,7 @@ void DomainMapper_Impl::finishParagraph( const PropertyMapPtr& pPropertyMap, con
                         OUString aPreviousNumberingName;
                         if (isNumberingViaRule)
                         {
+                            assert(itNumberingRules != aProperties.end() && "by definition itNumberingRules is valid if isNumberingViaRule is true");
                             uno::Reference<container::XNamed> xCurrentNumberingRules(itNumberingRules->Value, uno::UNO_QUERY);
                             if (xCurrentNumberingRules.is())
                                 aCurrentNumberingName = xCurrentNumberingRules->getName();


More information about the Libreoffice-commits mailing list