From 89a9e9dcd3ae60ab909c8256b486e29f33561f1b Mon Sep 17 00:00:00 2001 From: Martin Blapp Date: Sun, 30 Mar 2003 21:32:27 +0000 Subject: Check for m_pLockfile != NULL to fix crash during startup if no lockfile does exist at all (if we have no installed user directory) --- .../patch-desktop+source+app+app.cxx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 editors/openoffice.org-3-RC/patch-desktop+source+app+app.cxx (limited to 'editors/openoffice.org-3-RC') diff --git a/editors/openoffice.org-3-RC/patch-desktop+source+app+app.cxx b/editors/openoffice.org-3-RC/patch-desktop+source+app+app.cxx new file mode 100644 index 000000000000..4e82d5277384 --- /dev/null +++ b/editors/openoffice.org-3-RC/patch-desktop+source+app+app.cxx @@ -0,0 +1,22 @@ +--- ../desktop/source/app/app.cxx.orig Sun Mar 30 22:26:15 2003 ++++ ../desktop/source/app/app.cxx Sun Mar 30 22:27:02 2003 +@@ -587,7 +587,8 @@ + ::comphelper::setProcessServiceFactory( NULL ); + + // clear lockfile +- m_pLockfile->clean(); ++ if (m_pLockfile != NULL) ++ m_pLockfile->clean(); + + if( !Application::IsRemoteServer() ) + { +@@ -621,7 +622,8 @@ + a <<= (sal_Bool)sal_False; + xPropertySet->setPropertyValue( OUSTRING(RTL_CONSTASCII_USTRINGPARAM( SUSPEND_QUICKSTARTVETO )), a ); + } else { +- m_pLockfile->clean(); ++ if (m_pLockfile != NULL) ++ m_pLockfile->clean(); + } + + return bExit; -- cgit v1.2.3