diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-10-30 20:28:28 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-11-06 11:49:23 +0200 |
commit | d6f852ef140d57c82b945fa4ec3954ad9db0a8b1 (patch) | |
tree | b955ff140f0a58844b305425b89fc618ed1627be /sc | |
parent | 1a41d97fc65697e5d1602490a89e2cc84375f482 (diff) |
Avoid crash
Sure, this is probably "defensive coding" and the root cause is my other
changes...
Change-Id: Ia888921fddc48dc022a3205c7e0abc7e2160cf5c
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/opencl/formulagroupcl.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index e77eeb423cc1..3dfcc10d012a 100644 --- a/sc/source/core/opencl/formulagroupcl.cxx +++ b/sc/source/core/opencl/formulagroupcl.cxx @@ -2224,7 +2224,10 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( for (unsigned i = 0; i < nChildren; i++) { - FormulaToken* pChild = ft->Children[i]->GetFormulaToken(); + FormulaTreeNodeRef rChild = ft->Children[i]; + if (!rChild) + throw Unhandled(); + FormulaToken* pChild = rChild->GetFormulaToken(); if (!pChild) throw Unhandled(); OpCode opc = pChild->GetOpCode(); |