Kaydet (Commit) 6692eeca authored tarafından Michael Stahl's avatar Michael Stahl

svtools: don't dereference invalid iterator

Can be reproduced by opening Data Sources in Writer and closing
document.

Change-Id: I703ceffee3a1896acd06076d8b77085e8785acd3
üst 9dfbc0af
......@@ -1465,6 +1465,8 @@ sal_Bool SvListView::IsExpanded( SvTreeListEntry* pEntry ) const
DBG_ASSERT(pEntry,"IsExpanded:No Entry");
SvDataTable::const_iterator itr = maDataTable.find(pEntry);
DBG_ASSERT(itr != maDataTable.end(),"Entry not in Table");
if (itr == maDataTable.end())
return false;
return itr->second->IsExpanded();
}
......
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