Kaydet (Commit) 0e0ac7cc authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705038 Explicit null dereferenced

Change-Id: I63f726764d68b92e2272951c9dde14ef3a60d6df
üst 7af46fb2
......@@ -452,7 +452,7 @@ void SwXTextDocument::GetNumberFormatter()
}
OSL_ENSURE(pNumFmt, "No number formatter available");
if(!pNumFmt->GetNumberFormatter())
if (pNumFmt && !pNumFmt->GetNumberFormatter())
pNumFmt->SetNumberFormatter(pDocShell->GetDoc()->GetNumberFormatter( sal_True ));
}
}
......
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