coverity#705845 Dereference before null
Change-Id: I4aecc132ca45abd45183455c87be4c4a3749d983
This commit is contained in:
@@ -1707,6 +1707,8 @@ void ScViewFunc::Solve( const ScSolveParam& rParam )
|
||||
{
|
||||
ScDocument* pDoc = GetViewData().GetDocument();
|
||||
|
||||
if ( pDoc )
|
||||
{
|
||||
SCCOL nDestCol = rParam.aRefVariableCell.Col();
|
||||
SCROW nDestRow = rParam.aRefVariableCell.Row();
|
||||
SCTAB nDestTab = rParam.aRefVariableCell.Tab();
|
||||
@@ -1718,8 +1720,6 @@ void ScViewFunc::Solve( const ScSolveParam& rParam )
|
||||
return;
|
||||
}
|
||||
|
||||
if ( pDoc )
|
||||
{
|
||||
OUString aTargetValStr;
|
||||
if ( rParam.pStrTargetVal != NULL )
|
||||
aTargetValStr = *(rParam.pStrTargetVal);
|
||||
|
Reference in New Issue
Block a user