summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/toolbox.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index b434061fb274..d2e330b5e858 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -1615,6 +1615,9 @@ void ToolBox::dispose()
ImplToolItem* ToolBox::ImplGetItem( sal_uInt16 nItemId ) const
{
+ if (!mpData)
+ return NULL;
+
std::vector< ImplToolItem >::iterator it = mpData->m_aItems.begin();
while ( it != mpData->m_aItems.end() )
{