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

coverity#705872 Dereference before null check

Change-Id: Ia964362f757372862b3f2e5a0a9581171616251b
üst 50d5bd90
......@@ -69,18 +69,15 @@ PresentationViewShellBase::PresentationViewShellBase (
: ViewShellBase (_pFrame, pOldShell)
{
// Hide the automatic (non-context sensitive) tool bars.
if (_pFrame!=NULL)
Reference<beans::XPropertySet> xFrameSet (
_pFrame->GetFrame().GetFrameInterface(),
UNO_QUERY);
if (xFrameSet.is())
{
Reference<beans::XPropertySet> xFrameSet (
_pFrame->GetFrame().GetFrameInterface(),
UNO_QUERY);
if (xFrameSet.is())
Reference<beans::XPropertySet> xLayouterSet(xFrameSet->getPropertyValue("LayoutManager"), UNO_QUERY);
if (xLayouterSet.is())
{
Reference<beans::XPropertySet> xLayouterSet(xFrameSet->getPropertyValue("LayoutManager"), UNO_QUERY);
if (xLayouterSet.is())
{
xLayouterSet->setPropertyValue("AutomaticToolbars", makeAny(sal_False));
}
xLayouterSet->setPropertyValue("AutomaticToolbars", makeAny(sal_False));
}
}
}
......
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