| commit | 27995e638e1582b443befa93bc5dfd5970a38ef2 | [log] |
|---|---|---|
| author | Michael Meeks <michael.meeks@collabora.com> | Wed Dec 12 09:18:09 2018 +0000 |
| committer | Xisco FaulĂ <xiscofauli@libreoffice.org> | Wed Dec 12 18:23:28 2018 +0100 |
| tree | 7c70d1ec4f302a361e990f15599529075ed4bcbe | |
| parent | 89c888b48eca24e25ffe8895542cf7ac9b731187 [diff] |
tdf#122020 - avoid nullptr deref. Change-Id: Iaa63a90841523061490d207ba5403de26d5c0025 Reviewed-on: https://gerrit.libreoffice.org/65005 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ <xiscofauli@libreoffice.org>
diff --git a/dbaccess/source/ui/control/dbtreelistbox.cxx b/dbaccess/source/ui/control/dbtreelistbox.cxx index 1925a22..03b87a1 100644 --- a/dbaccess/source/ui/control/dbtreelistbox.cxx +++ b/dbaccess/source/ui/control/dbtreelistbox.cxx
@@ -183,7 +183,9 @@ // set the flag which allows if the entry can be expanded pEntry->SetFlags( (pEntry->GetFlags() & ~SvTLEntryFlags(SvTLEntryFlags::NO_NODEBMP | SvTLEntryFlags::HAD_CHILDREN)) | SvTLEntryFlags::CHILDREN_ON_DEMAND ); // redraw the entry GetModel()->InvalidateEntry( pEntry ); SvTreeList* myModel = GetModel(); if (myModel) myModel->InvalidateEntry( pEntry ); } void DBTreeListBox::ModelHasEntryInvalidated( SvTreeListEntry* _pEntry )