diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-16 12:21:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-16 20:33:05 +0200 |
commit | 807b68a6f35198f8dee8f57a8925c4cf5ce05ac0 (patch) | |
tree | babf62008075bbf2eb6e17195162d1492fd99641 /sc | |
parent | de075c0f38a5888b54742b6a95b91d41a443978d (diff) |
cid#14484777 Dereference null return value
Change-Id: If59f06db4a4048f068acc54f9908e45c908138e8
Reviewed-on: https://gerrit.libreoffice.org/75720
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table2.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 2aee672f8ad2..388e0bb1be61 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -1663,6 +1663,7 @@ CommentCaptionState ScTable::GetAllNoteCaptionsState(const ScRange& rRange, std: bool bFirstControl = true; ScTable* pTab = pDocument->FetchTable(nTab); + assert(pTab); const SCCOL nEndCol = pTab->ClampToAllocatedColumns(rRange.aEnd.Col()); for (SCCOL nCol = rRange.aStart.Col(); nCol <= nEndCol; ++nCol) { |