From 09c0e5110a459d4b591385db6aebaff93c25cf10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 23 Feb 2014 13:31:02 +0000 Subject: [PATCH] coverity#704642 Dereference after null check Change-Id: Iae9b7caf2076722a01e6882921622b193f2b4349 --- filter/source/msfilter/svdfppt.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 60e9c26e5477..fa1d06f49f7d 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -2537,6 +2537,9 @@ bool SdrPowerPointImport::GetColorFromPalette( sal_uInt16 nNum, Color& rColor ) else pMasterPersist = (*pPageList2)[ nNextMaster ]; } + } + if ( pMasterPersist ) + { ((SdrPowerPointImport*)this)->aPageColors = pMasterPersist->aColorScheme; } }