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

coverity#1019336 Dereference after null check

Change-Id: I7bdd58f1411279d64b61baf25792cc6d1dff19ad
üst d77cc9d2
......@@ -1458,7 +1458,7 @@ void SdrOle2Obj::SetPage(SdrPage* pNewPage)
if (bRemove && mpImpl->mbConnected )
Disconnect();
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