diff options
author | Ariel Constenla-Haile <arielch@apache.org> | 2014-03-31 19:41:22 +0000 |
---|---|---|
committer | Ariel Constenla-Haile <arielch@apache.org> | 2014-03-31 19:41:22 +0000 |
commit | 54f27df803da7f9b0d7de9dc027dc89bc20ad560 (patch) | |
tree | 63f36bb10327e57473fb255996037b69772450a2 /svtools | |
parent | be3e9eb3656451b3091f45011f33d701f13b3c13 (diff) |
i124570 - Prevent a null pointer dereference
Notes
Notes:
prefer: 78fde59e65bf1fbf8290e60b8cbe4b34e3489b93
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/roadmap.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svtools/source/control/roadmap.cxx b/svtools/source/control/roadmap.cxx index 5178b69796a1..ad4c75af574e 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(); } } |