summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-05 16:08:40 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-05 20:41:04 +0000
commite59e188404b2666ee04080bd46dc56e05b810d4f (patch)
treeb6b90e57563cefc1586d9763e6a256aec9c59e66 /sc
parent3b6a4c3bee4696332dd547096d5501e28a195770 (diff)
coverity#704673 Dereference after null check
Change-Id: I6302c2b8c721e7b2e2c640d905a0c95ee4ba711d
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/funcdesc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/funcdesc.cxx b/sc/source/core/data/funcdesc.cxx
index d0331dc3fa86..d7d1f9f96405 100644
--- a/sc/source/core/data/funcdesc.cxx
+++ b/sc/source/core/data/funcdesc.cxx
@@ -321,7 +321,7 @@ void ScFuncDesc::fillVisibleArgumentMapping(::std::vector<sal_uInt16>& _rArgumen
nArgs -= VAR_ARGS - 1;
for (sal_uInt16 i=0; i < nArgs; ++i)
{
- if (!pDefArgFlags[i].bSuppress)
+ if (!pDefArgFlags || !pDefArgFlags[i].bSuppress)
_rArguments.push_back(i);
}
}