diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-29 20:23:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-29 20:56:16 +0000 |
commit | 4538875a16f0627852343327685a7938ed399701 (patch) | |
tree | fb34089b27924b296ec3e3e0df5ef7f202bb9585 | |
parent | f7f47366ea78a71853fcaca2fa402bef667d9cce (diff) |
Resolves: rhbz#666216 survive missing window
-rw-r--r-- | framework/source/services/backingcomp.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/framework/source/services/backingcomp.cxx b/framework/source/services/backingcomp.cxx index 3860a6645226..89e5d514070d 100644 --- a/framework/source/services/backingcomp.cxx +++ b/framework/source/services/backingcomp.cxx @@ -522,8 +522,11 @@ void SAL_CALL BackingComp::attachFrame( /*IN*/ const css::uno::Reference< css::f xLayoutManager->unlock(); } - // set help ID for our canvas - pWindow->SetHelpId(HID_BACKINGWINDOW); + if (pWindow) + { + // set help ID for our canvas + pWindow->SetHelpId(HID_BACKINGWINDOW); + } // inform BackingWindow about frame BackingWindow* pBack = dynamic_cast<BackingWindow*>(pWindow ); |