Kaydet (Commit) d77cc9d2 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1019335 Dereference after null check

Change-Id: I309e0c3f8a0630991e2aad64f995567e0920be3b
üst 53d879aa
......@@ -974,7 +974,7 @@ void SdrGrafObj::SetPage( SdrPage* pNewPage )
ImpLinkAbmeldung();
}
if(!pModel && !GetStyleSheet() && pNewPage->GetModel())
if(!pModel && !GetStyleSheet() && pNewPage && pNewPage->GetModel())
{
// #i119287# Set default StyleSheet for SdrGrafObj here, it is different from 'Default'. This
// needs to be done before the style 'Default' is set from the :SetModel() call which is triggered
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment