[Libreoffice-commits] .: ucb/source

Caolán McNamara caolan at kemper.freedesktop.org
Mon Jan 10 07:39:41 PST 2011


 ucb/source/ucp/gio/gio_content.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 7d6908a238145ed77285f69e75009dbe0488d064
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Jan 10 15:39:18 2011 +0000

    Related: rhbz#668057 Only need to know this if pInfo is non-null

diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx
index a605267..80125c2 100644
--- a/ucb/source/ucp/gio/gio_content.cxx
+++ b/ucb/source/ucp/gio/gio_content.cxx
@@ -1026,7 +1026,8 @@ void Content::insert(const uno::Reference< io::XInputStream > &xInputStream,
     GError *pError = NULL;
     GFileInfo *pInfo = getGFileInfo(xEnv);
 
-    if ( g_file_info_has_attribute(pInfo, G_FILE_ATTRIBUTE_STANDARD_TYPE) &&
+    if ( pInfo &&
+         g_file_info_has_attribute(pInfo, G_FILE_ATTRIBUTE_STANDARD_TYPE) &&
          g_file_info_get_file_type(pInfo) == G_FILE_TYPE_DIRECTORY )
     {
 #ifdef DEBUG


More information about the Libreoffice-commits mailing list