diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-18 12:51:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-18 20:30:10 +0200 |
commit | b72ebcf5b26ab2e54c5251c5c45e6d45cade9236 (patch) | |
tree | 803385936129f9850cd65a237fbd7c282e6aae1b /sc/source/ui/docshell | |
parent | 3996ced5fbc75ed6a528969e29642eb60b7b6be5 (diff) |
cid#1509258 Dereference null return value
Change-Id: Iebe32d16b3a294e60cca59c49de3da4b1f142e01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138498
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r-- | sc/source/ui/docshell/olinefun.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/olinefun.cxx b/sc/source/ui/docshell/olinefun.cxx index 70fafd8e1e2a..3b15989c3664 100644 --- a/sc/source/ui/docshell/olinefun.cxx +++ b/sc/source/ui/docshell/olinefun.cxx @@ -731,6 +731,8 @@ bool ScOutlineDocFunc::HideOutline( SCTAB nTab, bool bColumns, sal_uInt16 nLevel bRecord = false; ScOutlineTable* pTable = rDoc.GetOutlineTable( nTab ); + if (!pTable) + return false; ScOutlineArray& rArray = bColumns ? pTable->GetColArray() : pTable->GetRowArray(); ScOutlineEntry* pEntry = rArray.GetEntry( nLevel, nEntry ); SCCOLROW nStart = pEntry->GetStart(); |