Kaydet (Commit) 4dce503b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1288895 Explicit null dereferenced

Change-Id: I3b8fe2e1aec18b41b1d4553bca0fa6c52d5cfde6
üst 3f6589a6
...@@ -1355,7 +1355,7 @@ void SfxTabDialog::SetInputSet( const SfxItemSet* pInSet ) ...@@ -1355,7 +1355,7 @@ void SfxTabDialog::SetInputSet( const SfxItemSet* pInSet )
delete pSet; delete pSet;
pSet = pInSet ? new SfxItemSet(*pInSet) : 0; pSet = pInSet ? new SfxItemSet(*pInSet) : 0;
if ( !bSet && !pExampleSet && !pOutSet ) if (!bSet && !pExampleSet && !pOutSet && pSet)
{ {
pExampleSet = new SfxItemSet( *pSet ); pExampleSet = new SfxItemSet( *pSet );
pOutSet = new SfxItemSet( *pSet->GetPool(), pSet->GetRanges() ); pOutSet = new SfxItemSet( *pSet->GetPool(), pSet->GetRanges() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment