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

coverity#1338232 Explicit null dereferenced

Change-Id: I4be589325b89eac129328f98f9db7ce8c741892d
üst cf02d0a4
...@@ -670,6 +670,7 @@ void SwPageFrm::MakeAll(vcl::RenderContext* pRenderContext) ...@@ -670,6 +670,7 @@ void SwPageFrm::MakeAll(vcl::RenderContext* pRenderContext)
pAccess = o3tl::make_unique<SwBorderAttrAccess>(SwFrm::GetCache(), this); pAccess = o3tl::make_unique<SwBorderAttrAccess>(SwFrm::GetCache(), this);
pAttrs = pAccess->Get(); pAttrs = pAccess->Get();
} }
assert(pAttrs);
// In BrowseView, we use fixed settings // In BrowseView, we use fixed settings
SwViewShell *pSh = getRootFrm()->GetCurrShell(); SwViewShell *pSh = getRootFrm()->GetCurrShell();
if ( pSh && pSh->GetViewOptions()->getBrowseMode() ) if ( pSh && pSh->GetViewOptions()->getBrowseMode() )
......
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