diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 10:20:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 14:16:03 +0100 |
commit | 7c79237e6555ecb54665cbc93e94adaf05c669b8 (patch) | |
tree | 988be53fe4ee03444d15d56fdc0feddfd00c2d4b | |
parent | 620032dc7b67f051e9c89b3cd12f4b898179fd49 (diff) |
coverity#704942 Unchecked dynamic_cast
Change-Id: I1090150b9cf5998549dabf73353a78e7e51e34ea
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 2 |
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; } |