diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-15 13:13:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-15 20:55:49 +0000 |
commit | 19efab6828d79b96adfba8cbea6d057c4f3ac2f6 (patch) | |
tree | e8a3c9397b55ddcb44acdc605294244d6e73dced /svtools | |
parent | 7c2e5331a7707bafc9bc2f3b7acd207cc385489d (diff) |
coverity#982471 Dereference after null check
Change-Id: I00c47ffa1f03e1c6e921efbc41ef01252c1c64b7
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/fileview.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx index cb0f3211dbb0..be9c77ed6c4f 100644 --- a/svtools/source/contnr/fileview.cxx +++ b/svtools/source/contnr/fileview.cxx @@ -1011,7 +1011,9 @@ sal_Bool ViewTabListBox_Impl::EditedEntry( SvTreeListEntry* pEntry, aContent.setPropertyValue( aPropName, aValue ); mpParent->EntryRenamed( aURL, rNewText ); - pData->maURL = aURL; + if (pData) + pData->maURL = aURL; + pEntry->SetUserData( pData ); bRet = sal_True; |