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

coverity#705960 Dereference before null check

Change-Id: I39253ca1e50c57564b594401f69cef4b661dbd2a
üst e19de192
......@@ -822,8 +822,10 @@ void SwXDocumentSettings::_preGetValues ()
throw(beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException )
{
mpDocSh = mpModel->GetDocShell();
if (NULL == mpDocSh)
throw UnknownPropertyException();
mpDoc = mpDocSh->GetDoc();
if( NULL == mpDoc || NULL == mpDocSh )
if (NULL == mpDoc)
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