diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-21 15:48:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-21 15:52:28 +0000 |
commit | 87d1e5c27d33f79f45fff3a1c9d05f0d3662cfaa (patch) | |
tree | 180bfab2df7fdbbf3d07e7b9f5a6bdab3893c39a | |
parent | 292ba61eae3318edd86ec0af4d8726189bc2affd (diff) |
coverity#705459 Dereference null return value
Change-Id: Ib49e23529e34dfc4afda45f26eec15af67e9da68
-rw-r--r-- | cui/source/options/treeopt.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 057f014689b9..1a23f7da634d 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -877,6 +877,9 @@ void OfaTreeOptionsDialog::ActivateLastSelection() pEntry = aTreeLB.Next(pEntry); } + if ( !pEntry ) + return; + SvTreeListEntry* pParent = aTreeLB.GetParent(pEntry); aTreeLB.Expand(pParent); aTreeLB.MakeVisible(pParent); |