Check non-NULLness before use

Change-Id: Iec3809b458052fd746596bf3138ce6dd9d155f9f
This commit is contained in:
Lionel Elie Mamane
2013-05-12 04:49:52 +02:00
parent 3e5b9865fa
commit fe93ea66cc

View File

@@ -254,7 +254,8 @@ namespace svxform
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "svx", "Ocke.Janssen@sun.com", "NavigatorTreeModel::Clear" );
Reference< css::form::XForms > xForms( GetForms());
xForms->removeContainerListener((XContainerListener*)m_pPropChangeList);
if(xForms.is())
xForms->removeContainerListener((XContainerListener*)m_pPropChangeList);
//////////////////////////////////////////////////////////////////////
// RootList loeschen