summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-07-21 15:00:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-07-21 15:00:53 +0100
commit7b00ec7bb7bbf5206e7db4c566d1e681fb9f9607 (patch)
treeda4b784bdec7c18c922ff2f91b076217e4fd84bd
parent0d312afe2d31c19dbd2388d17ddbb372d1197c1f (diff)
coverity#1312085 Dereference null return value
Change-Id: Ia770e7a6a7ebcc875f3cf94471dcc032aeadc2d7
-rw-r--r--fpicker/source/office/RemoteFilesDialog.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx
index f7316d44b9ad..fb24a2512815 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 ) )