coverity#705845 Dereference before null

Change-Id: I4aecc132ca45abd45183455c87be4c4a3749d983
This commit is contained in:
Norbert Thiebaud
2014-07-01 16:18:48 +02:00
parent 31050012a4
commit b382f5df84

View File

@@ -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);