summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-05-14 08:41:16 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-05-14 08:41:16 +0000
commit87a8191f3092d321dd045da19295b79b1247c248 (patch)
tree0d9db30cbc4d144002893d2a8c750844fc3ae016 /fpicker
parent8c60e50f5f06d8ecdd7207f5daecc31905574a55 (diff)
INTEGRATION: CWS vcl88 (1.15.18); FILE MERGED
2008/04/17 05:49:53 pl 1.15.18.2: RESYNC: (1.15-1.16); FILE MERGED 2008/04/15 15:04:43 pl 1.15.18.1: #i87991# catch NULL ptr (thanks cmc)
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/unx/gnome/SalGtkPicker.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/fpicker/source/unx/gnome/SalGtkPicker.cxx b/fpicker/source/unx/gnome/SalGtkPicker.cxx
index 938ab3c06e70..69adb8c64c67 100644
--- a/fpicker/source/unx/gnome/SalGtkPicker.cxx
+++ b/fpicker/source/unx/gnome/SalGtkPicker.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: SalGtkPicker.cxx,v $
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
* This file is part of OpenOffice.org.
*
@@ -61,6 +61,9 @@ using namespace ::com::sun::star::uno;
rtl::OUString SalGtkPicker::uritounicode(const gchar* pIn)
{
+ if (!pIn)
+ return rtl::OUString();
+
rtl::OUString sURL( const_cast<const sal_Char *>(pIn), strlen(pIn),
RTL_TEXTENCODING_UTF8 );