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

coverity#705961 Dereference before null check

Change-Id: I0737bbc738779a4ef282c7eea1406a796e0d663d
üst 813a1ea1
...@@ -293,9 +293,11 @@ void SwXDocumentSettings::_preSetValues () ...@@ -293,9 +293,11 @@ void SwXDocumentSettings::_preSetValues ()
throw(beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException ) throw(beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException )
{ {
mpDocSh = mpModel->GetDocShell(); mpDocSh = mpModel->GetDocShell();
mpDoc = mpDocSh->GetDoc(); if (NULL == mpDocSh)
throw UnknownPropertyException();
if( NULL == mpDoc || NULL == mpDocSh ) mpDoc = mpDocSh->GetDoc();
if (NULL == mpDoc)
throw UnknownPropertyException(); throw UnknownPropertyException();
} }
......
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