diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-12-06 17:05:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-12-06 21:24:22 +0100 |
commit | fcb23c791e9dbf177e8b603a72198eba0b4dd3b2 (patch) | |
tree | e6387a4cd22b9c063c03a9ea7bd53f509a6a5460 | |
parent | 3df949ceba258abe5d8d34a688db9563518f3a05 (diff) |
table of objects crashes on first update with object in document
Change-Id: Ia25a09060f16e5d286dff2bbc3facba5ac68cdc4
Reviewed-on: https://gerrit.libreoffice.org/45971
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/core/tox/ToxTextGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/tox/ToxTextGenerator.cxx b/sw/source/core/tox/ToxTextGenerator.cxx index 61b664e70c09..3742fd1e3cd0 100644 --- a/sw/source/core/tox/ToxTextGenerator.cxx +++ b/sw/source/core/tox/ToxTextGenerator.cxx @@ -303,8 +303,8 @@ ToxTextGenerator::HandleTextToken(const SwTOXSortTabBase& source, SwAttrPool& po if( source.aTOXSources.empty() ) return result; - const SwTextNode* pSrc = source.aTOXSources.at(0).pNd->GetTextNode(); - if (!pSrc->HasHints()) { + const SwTextNode* pSrc = source.aTOXSources.front().pNd->GetTextNode(); + if (!pSrc || !pSrc->HasHints()) { return result; } const SwpHints& hints = pSrc->GetSwpHints(); |