summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorAriel Constenla-Haile <arielch@apache.org>2014-03-31 19:41:22 +0000
committerAriel Constenla-Haile <arielch@apache.org>2014-03-31 19:41:22 +0000
commit54f27df803da7f9b0d7de9dc027dc89bc20ad560 (patch)
tree63f36bb10327e57473fb255996037b69772450a2 /svtools
parentbe3e9eb3656451b3091f45011f33d701f13b3c13 (diff)
i124570 - Prevent a null pointer dereference
Notes
Notes: prefer: 78fde59e65bf1fbf8290e60b8cbe4b34e3489b93
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/roadmap.cxx3
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();
}
}