diff options
author | Carsten Driesner <cd@openoffice.org> | 2009-10-16 15:24:43 +0000 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2009-10-16 15:24:43 +0000 |
commit | 50889324d362a52a6b9239f08127152321416f9e (patch) | |
tree | 078db50bcaeff16722eb14a36212858a97303de4 | |
parent | 7ac3cbc92e93eabfbbbf65b8ac429afc28f84b2e (diff) |
#i105947# Check window pointer before calling SetStyle()
-rw-r--r-- | sfx2/source/dialog/dockwin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx index b10283c849..89aaf2a240 100644 --- a/sfx2/source/dialog/dockwin.cxx +++ b/sfx2/source/dialog/dockwin.cxx @@ -236,7 +236,8 @@ SfxDockingWrapper::SfxDockingWrapper( Window* pParentWnd , } Window* pContentWindow = VCLUnoHelper::GetWindow(xWindow); - pContentWindow->SetStyle( pContentWindow->GetStyle() | WB_DIALOGCONTROL | WB_CHILDDLGCTRL ); + if ( pContentWindow ) + pContentWindow->SetStyle( pContentWindow->GetStyle() | WB_DIALOGCONTROL | WB_CHILDDLGCTRL ); pTitleDockWindow->SetWrappedWindow(pContentWindow); } |