diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-12-09 18:27:40 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-12-10 15:32:26 +0100 |
commit | 8dd67ac98eca72e820ae365d5ceeb6a2eccec8ac (patch) | |
tree | 3b593dcff8e5b2c1226bec00efb48c7d76b1c729 /svtools | |
parent | b224c9ebc3a9364b0ffc2a806db097ddb3d3086a (diff) |
svtools: don't dereference invalid iterator
Can be reproduced by opening Data Sources in Writer and closing
document.
Change-Id: I703ceffee3a1896acd06076d8b77085e8785acd3
(cherry picked from commit 6692eeca9a3ba7a9ba461564172275fbb78992e9)
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/treelist.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx index 4cac34b39e05..3ef468d3f39b 100644 --- a/svtools/source/contnr/treelist.cxx +++ b/svtools/source/contnr/treelist.cxx @@ -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(); } |