summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorOcke Janssen [oj] <Ocke.Janssen@sun.com>2010-02-10 14:28:02 +0100
committerOcke Janssen [oj] <Ocke.Janssen@sun.com>2010-02-10 14:28:02 +0100
commitad3524adac606b2b06b5d98f9c5193f1fb40dfa1 (patch)
treef7fac632769a2859959ea88a78aed94085bcc9d6 /sw/source
parentfabb33ed251bdbeac1f12fc7dde16b5686ed7d9b (diff)
dba33f: #i108959# check if null before calling
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/ui/app/apphdl.cxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/sw/source/ui/app/apphdl.cxx b/sw/source/ui/app/apphdl.cxx
index 2d4615bba585..ed26c3470fbd 100644
--- a/sw/source/ui/app/apphdl.cxx
+++ b/sw/source/ui/app/apphdl.cxx
@@ -768,15 +768,20 @@ void SwModule::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
DELETEZ(pWebToolbarConfig) ;
DELETEZ(pAuthorNames) ;
DELETEZ(pDBConfig);
- pColorConfig->RemoveListener(this);
+ if ( pColorConfig )
+ pColorConfig->RemoveListener(this);
DELETEZ(pColorConfig);
- pAccessibilityOptions->RemoveListener(this);
+ if ( pAccessibilityOptions )
+ pAccessibilityOptions->RemoveListener(this);
DELETEZ(pAccessibilityOptions);
- pCTLOptions->RemoveListener(this);
+ if ( pCTLOptions )
+ pCTLOptions->RemoveListener(this);
DELETEZ(pCTLOptions);
- pUserOptions->RemoveListener(this);
+ if ( pUserOptions )
+ pUserOptions->RemoveListener(this);
DELETEZ(pUserOptions);
- pUndoOptions->RemoveListener(this);
+ if ( pUndoOptions )
+ pUndoOptions->RemoveListener(this);
DELETEZ(pUndoOptions);
}
}