summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-31 14:22:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-02 12:14:44 +0100
commit9432b8d400dd38c2a96fce6aad77d4876072dd8c (patch)
treed0dce54ac1404b8864e10d1737ca78a2d3ae3375 /test
parent4edb725ebb3809448ce18b8566b9812617d3bb79 (diff)
coverity#1233488 Unchecked dynamic_cast
Change-Id: I9599fb4473a43a4624d64c48e8768761fcbd266f
Diffstat (limited to 'test')
-rw-r--r--test/source/primitive2dxmldump.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/source/primitive2dxmldump.cxx b/test/source/primitive2dxmldump.cxx
index 9d3ad11fe407..0fdf89642254 100644
--- a/test/source/primitive2dxmldump.cxx
+++ b/test/source/primitive2dxmldump.cxx
@@ -94,7 +94,8 @@ void Primitive2dXmlDump::decomposeAndWrite(
{
drawinglayer::primitive2d::Primitive2DReference xPrimitive2DReference = rPrimitive2DSequence[i];
const BasePrimitive2D* pBasePrimitive = dynamic_cast<const BasePrimitive2D* >(xPrimitive2DReference.get());
-
+ if (!pBasePrimitive)
+ continue;
sal_uInt32 nId = pBasePrimitive->getPrimitive2DID();
if (maFilter[nId])
continue;