| commit | b72ebcf5b26ab2e54c5251c5c45e6d45cade9236 | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Thu Aug 18 12:51:46 2022 +0100 |
| committer | Caolán McNamara <caolanm@redhat.com> | Thu Aug 18 20:30:10 2022 +0200 |
| tree | 803385936129f9850cd65a237fbd7c282e6aae1b | |
| 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>
diff --git a/sc/source/ui/docshell/olinefun.cxx b/sc/source/ui/docshell/olinefun.cxx index 70fafd8e..3b15989c 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();