[Libreoffice-commits] core.git: fpicker/source

Caolán McNamara caolanm at redhat.com
Tue Jul 21 07:01:53 PDT 2015


 fpicker/source/office/RemoteFilesDialog.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 7b00ec7bb7bbf5206e7db4c566d1e681fb9f9607
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jul 21 15:00:53 2015 +0100

    coverity#1312085 Dereference null return value
    
    Change-Id: Ia770e7a6a7ebcc875f3cf94471dcc032aeadc2d7

diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx
index f7316d4..fb24a25 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -631,6 +631,8 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, DoubleClickHdl )
 IMPL_LINK_NOARG ( RemoteFilesDialog, SelectHdl )
 {
     SvTreeListEntry* pEntry = m_pFileView->FirstSelected();
+    if (!pEntry)
+        return 1;
     SvtContentEntry* pData = static_cast< SvtContentEntry* >( pEntry->GetUserData() );
 
     if( ( pData->mbIsFolder && ( m_eType == REMOTEDLG_TYPE_PATHDLG ) )


More information about the Libreoffice-commits mailing list