diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-28 11:53:46 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-07-31 12:03:56 +0200 |
commit | fb4f195349e95d8624028cf0bb26589885c226aa (patch) | |
tree | 73f512b41b016d5dd3508eb2b665dd245d20175d | |
parent | e587e2c473e1726f8bf8acc570b1e31cf00389e5 (diff) |
ofz: survive missing macro support
Change-Id: Ica9c66fe09f7340f76f62e536527dc63b3735d90
(cherry picked from commit aa529a1957fce324c500753039ae7766b8dcf6a6)
Reviewed-on: https://gerrit.libreoffice.org/40523
Reviewed-by: Eike Rathke <erack@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit a9a1306266e2fc67e8ac3029584d7a264fe37ff0)
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index b9b3a192a2ef..e0f67fc1b5ef 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -3335,6 +3335,9 @@ bool ScCompiler::IsMacro( const OUString& rName ) return false; } + if (!pObj) + return false; + // ODFF recommends to store user-defined functions prefixed with "USER.", // use only unprefixed name if encountered. BASIC doesn't allow '.' in a // function name so a function "USER.FOO" could not exist, and macro check |