diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-20 23:43:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-20 23:43:32 +0100 |
commit | 2d33695e8722fcbca3bedbbfa7eb87365767d4c1 (patch) | |
tree | b31a3e667508081113996ec59a5c459ad7b526da | |
parent | d0643dd6e23a0f4ef05f74ee3cfe20e41d52abdd (diff) |
Resolves: #i105349# protect against missing insertion position
-rw-r--r-- | sw/source/filter/ww8/ww8par3.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index a68fb7798523..587613e96511 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -1768,10 +1768,12 @@ void SwWW8ImplReader::RegisterNumFmtOnTxtNode(sal_uInt16 nActLFO, if (pLstManager) // sind die Listendeklarationen gelesen? { - std::vector<sal_uInt8> aParaSprms; SwTxtNode* pTxtNd = pPaM->GetNode()->GetTxtNode(); - OSL_ENSURE(pTxtNd, "Kein Text-Node an PaM-Position"); + OSL_ENSURE(pTxtNd, "No Text-Node at PaM-Position"); + if (!pTxtNd) + return; + std::vector<sal_uInt8> aParaSprms; const SwNumRule* pRule = bSetAttr ? pLstManager->GetNumRuleForActivation( nActLFO, nActLevel, aParaSprms, pTxtNd) : 0; |