summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-23 10:20:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-23 14:16:03 +0100
commit7c79237e6555ecb54665cbc93e94adaf05c669b8 (patch)
tree988be53fe4ee03444d15d56fdc0feddfd00c2d4b
parent620032dc7b67f051e9c89b3cd12f4b898179fd49 (diff)
coverity#704942 Unchecked dynamic_cast
Change-Id: I1090150b9cf5998549dabf73353a78e7e51e34ea
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 27a0351abbb9..36d826129451 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -4440,7 +4440,7 @@ namespace {
{
const SfxInt16Item* pListLevelItem =
dynamic_cast<const SfxInt16Item*>(pItem);
- if ( pListLevelItem->GetValue() != mrTxtNode.GetAttrListLevel() )
+ if (pListLevelItem && pListLevelItem->GetValue() != mrTxtNode.GetAttrListLevel())
{
mbUpdateListLevel = true;
}