summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Driesner <cd@openoffice.org>2009-10-16 15:24:43 +0000
committerCarsten Driesner <cd@openoffice.org>2009-10-16 15:24:43 +0000
commit50889324d362a52a6b9239f08127152321416f9e (patch)
tree078db50bcaeff16722eb14a36212858a97303de4
parent7ac3cbc92e93eabfbbbf65b8ac429afc28f84b2e (diff)
#i105947# Check window pointer before calling SetStyle()
-rw-r--r--sfx2/source/dialog/dockwin.cxx3
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);
}