Kaydet (Commit) 87d1e5c2 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705459 Dereference null return value

Change-Id: Ib49e23529e34dfc4afda45f26eec15af67e9da68
üst 292ba61e
...@@ -877,6 +877,9 @@ void OfaTreeOptionsDialog::ActivateLastSelection() ...@@ -877,6 +877,9 @@ void OfaTreeOptionsDialog::ActivateLastSelection()
pEntry = aTreeLB.Next(pEntry); pEntry = aTreeLB.Next(pEntry);
} }
if ( !pEntry )
return;
SvTreeListEntry* pParent = aTreeLB.GetParent(pEntry); SvTreeListEntry* pParent = aTreeLB.GetParent(pEntry);
aTreeLB.Expand(pParent); aTreeLB.Expand(pParent);
aTreeLB.MakeVisible(pParent); aTreeLB.MakeVisible(pParent);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment