fdo#45916: Ensure formula cell's pCode isn't NULL even when compilation fails.
This commit is contained in:
parent
d7baacd81b
commit
ee38b167c8
1 changed files with 3 additions and 0 deletions
|
@ -777,6 +777,9 @@ ScFormulaCell::ScFormulaCell( ScDocument* pDoc, const ScAddress& rPos,
|
|||
aPos( rPos )
|
||||
{
|
||||
Compile( rFormula, true, eGrammar ); // bNoListening, Insert does that
|
||||
if (!pCode)
|
||||
// We need to have a non-NULL token array instance at all times.
|
||||
pCode = new ScTokenArray;
|
||||
}
|
||||
|
||||
// Wird von den Importfiltern verwendet
|
||||
|
|
Loading…
Reference in a new issue