summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}