diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-28 11:53:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-28 11:53:46 +0100 |
commit | aa529a1957fce324c500753039ae7766b8dcf6a6 (patch) | |
tree | 9c4816aa7cc1dd285938d19f25c890b13ba4443f | |
parent | a4d22caa78f58a2e9263a17370feaa6d7fdf665c (diff) |
ofz: survive missing macro support
Change-Id: Ica9c66fe09f7340f76f62e536527dc63b3735d90
-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 870d928b026b..dcd9f1e58280 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -3330,6 +3330,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 |