Kaydet (Commit) 6fd0c690 authored tarafından Noel Grandin's avatar Noel Grandin

cid#705016 dereference after null check

pLB was already dereferenced in the call to GetMapPos, so no point
in checking it for null

Change-Id: I8b9c5f5e5725829fdeaa61488168d0d289b02b4c
üst 6e0a080e
...@@ -1957,8 +1957,7 @@ IMPL_LINK( SwFrmPage, PosHdl, ListBox *, pLB ) ...@@ -1957,8 +1957,7 @@ IMPL_LINK( SwFrmPage, PosHdl, ListBox *, pLB )
m_pAtVertPosFT->Enable( bEnable ); m_pAtVertPosFT->Enable( bEnable );
} }
if (pLB) // only when Handler was called by changing of the controller RangeModifyHdl( 0 );
RangeModifyHdl( 0 );
sal_uInt16 nRel = 0; sal_uInt16 nRel = 0;
if (pLB->GetSelectEntryCount()) if (pLB->GetSelectEntryCount())
......
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