--- sd/source/ui/unoidl/DrawController.cxx 2010-11-11 20:08:58.000000000 +0100 +++ sd/source/ui/unoidl/DrawController.cxx-gil 2011-03-03 15:40:26.000000000 +0100 @@ -166,7 +166,9 @@ { mbDisposing = true; - boost::shared_ptr pViewShell = mpBase->GetMainViewShell(); + boost::shared_ptr pViewShell; + if (mpBase) + pViewShell = mpBase->GetMainViewShell(); if ( pViewShell ) { pViewShell->DeactivateCurrentFunction();