summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-03 13:37:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-03 14:52:29 +0100
commit29e353bdf7990a9d3db36e3210136893bf75fe94 (patch)
tree341175afaba0d9664dd8e2e44556804354f15fb0
parentd1f9507ff88b6e1934fbfee597182c7c1393e888 (diff)
coverity#704075 Unchecked return value
Change-Id: Iacb7ccb17106bd3439c56756eb6d6a4b5969465d
-rw-r--r--sw/source/uibase/utlui/navipi.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index f20fc03205ab..d73e23fa6699 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -1163,8 +1163,8 @@ OUString SwNavigationPI::CreateDropFileName( TransferableDataHelper& rData )
rData.HasFormat( nFmt = SOT_FORMATSTR_ID_UNIFORMRESOURCELOCATOR ))
{
INetBookmark aBkmk( aEmptyOUStr, aEmptyOUStr );
- rData.GetINetBookmark( nFmt, aBkmk );
- sFileName = aBkmk.GetURL();
+ if (rData.GetINetBookmark(nFmt, aBkmk))
+ sFileName = aBkmk.GetURL();
}
if( !sFileName.isEmpty() )
{