[Libreoffice-commits] .: Branch 'feature/tubes2' - sc/source

Michael Meeks michael at kemper.freedesktop.org
Fri Mar 23 04:41:16 PDT 2012


 sc/source/ui/collab/sendfunc.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 5db9b41638b66b1198b65b72d31c36613475fd25
Author: Michael Meeks <michael.meeks at suse.com>
Date:   Fri Mar 23 11:32:13 2012 +0000

    tubes: fix crash with no collaboration setup

diff --git a/sc/source/ui/collab/sendfunc.cxx b/sc/source/ui/collab/sendfunc.cxx
index 4e16629..50d6649 100644
--- a/sc/source/ui/collab/sendfunc.cxx
+++ b/sc/source/ui/collab/sendfunc.cxx
@@ -374,7 +374,8 @@ class ScDocFuncSend : public ScDocFunc
         fprintf( stderr, "Temp file is '%s'\n",
                  rtl::OUStringToOString( aFileURL, RTL_TEXTENCODING_UTF8 ).getStr() );
 
-        mpCollab->sendFile( aFileURL );
+        if ( mpCollab )
+            mpCollab->sendFile( aFileURL );
     }
 
 public:


More information about the Libreoffice-commits mailing list