diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-07 13:03:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-07 21:49:43 +0100 |
commit | d9bb43a31df7d92118713a7f7d09879285a991ac (patch) | |
tree | 5b166f86d1fffe395a3edfaa8e10c725dd2fb4a3 /lotuswordpro/source | |
parent | ba9a42009a6e712aea8646956bd711afb058db24 (diff) |
ofz#6088 Null-dereference
Change-Id: I5854e27b4322f4e9b3dd8c976d619e98cc0ee3cc
Reviewed-on: https://gerrit.libreoffice.org/49351
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwptablelayout.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx index 0a3078cf697a..924da8b7ab08 100644 --- a/lotuswordpro/source/filter/lwptablelayout.cxx +++ b/lotuswordpro/source/filter/lwptablelayout.cxx @@ -547,6 +547,9 @@ void LwpTableLayout::RegisterColumns() m_aColumns[i] = nullptr; } + if (!pTable) + throw std::range_error("corrupt LwpTableLayout"); + double dDefaultColumn = pTable->GetWidth(); sal_uInt16 nJustifiableColumn = nCols; |