[Libreoffice-commits] core.git: Branch 'aoo/trunk' - svtools/source

Ariel Constenla-Haile arielch at apache.org
Mon Mar 31 13:08:05 PDT 2014


 svtools/source/control/roadmap.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 54f27df803da7f9b0d7de9dc027dc89bc20ad560
Author: Ariel Constenla-Haile <arielch at apache.org>
Date:   Mon Mar 31 19:41:22 2014 +0000

    i124570 - Prevent a null pointer dereference

diff --git a/svtools/source/control/roadmap.cxx b/svtools/source/control/roadmap.cxx
index 5178b69..ad4c75a 100644
--- a/svtools/source/control/roadmap.cxx
+++ b/svtools/source/control/roadmap.cxx
@@ -766,7 +766,8 @@ namespace svt
             SetFont( aFont );
             RoadmapTypes::ItemId curItemID = GetCurrentRoadmapItemID();
             RoadmapItem* pLabelItem = GetByID( curItemID );
-            pLabelItem->ToggleBackgroundColor(rStyleSettings.GetHighlightColor());
+            if ( pLabelItem != NULL )
+                pLabelItem->ToggleBackgroundColor(rStyleSettings.GetHighlightColor());
             Invalidate();
         }
     }


More information about the Libreoffice-commits mailing list