diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-19 15:14:55 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-19 15:14:55 -0600 |
commit | 2a77e7a310d3b9a62df3c475578e11373188e802 (patch) | |
tree | 56279afe7b7f4d113ee7e64d5aaa02bd457de5f5 /accessibility/source | |
parent | 8db51361dc199c731cb82a06f90b4d2ff8eebfaf (diff) |
coverity#1158122 : Explicit null dereferenced
Change-Id: I6ffec6e69ca5ddb01998653d2f7637ed062bdc80
Diffstat (limited to 'accessibility/source')
-rw-r--r-- | accessibility/source/standard/vclxaccessiblelist.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx index 6d2281654420..29a65b5d6dcb 100644 --- a/accessibility/source/standard/vclxaccessiblelist.cxx +++ b/accessibility/source/standard/vclxaccessiblelist.cxx @@ -87,8 +87,10 @@ VCLXAccessibleList::VCLXAccessibleList (VCLXWindow* pVCLWindow, BoxType aBoxType } } UpdateVisibleLineCount(); - m_nCurSelectedPos=m_pListBoxHelper->GetSelectEntryPos(); - + if(m_pListBoxHelper) + { + m_nCurSelectedPos=m_pListBoxHelper->GetSelectEntryPos(); + } sal_uInt16 nCount = static_cast<sal_uInt16>(getAccessibleChildCount()); m_aAccessibleChildren.reserve(nCount); } |