diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-06 23:31:55 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-07 13:52:51 +0200 |
commit | 3feb65096a5dbb2b9713293a997754f0257223b5 (patch) | |
tree | ab0f2bb30111a2f5133999328818d32574300839 /sfx2 | |
parent | 55783b8006a509dbdfe29a1bd5d86f26204b6a42 (diff) |
tdf#120703 PVS: Silence V522 warnings
V522 There might be dereferencing of a potential null pointer.
Change-Id: I680f1628133216de6336ac5ffa846447ffd55a41
Reviewed-on: https://gerrit.libreoffice.org/70352
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/inet/inettbc.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx index a8f42dbc3154..64bc24956e17 100644 --- a/sfx2/source/inet/inettbc.cxx +++ b/sfx2/source/inet/inettbc.cxx @@ -229,6 +229,7 @@ void SfxURLToolBoxControl_Impl::StateChanged } const SfxStringItem *pURL = dynamic_cast< const SfxStringItem* >(pState); + assert(pURL); INetURLObject aURL( pURL->GetValue() ); INetProtocol eProt = aURL.GetProtocol(); if ( eProt == INetProtocol::File ) |