Commits

Anonymous committed 1353faa

#i105947# Check window pointer before calling SetStyle()

Comments (0)

Files changed (1)

sfx2/source/dialog/dockwin.cxx

         }
 		
         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);
     }