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

ofz#5471 Null-dereference READ

Change-Id: I5af76b87c3793c7ec7ac41ab25bb4de5d81fc3cf
Reviewed-on: https://gerrit.libreoffice.org/48123Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst fe5c7632
......@@ -309,7 +309,12 @@ protected:
public:
// Internal
const ESelection& GetSelection() const throw() { CheckSelection( const_cast<SvxUnoTextRangeBase*>(this)->maSelection, mpEditSource->GetTextForwarder() ); return maSelection; };
const ESelection& GetSelection() const throw()
{
const SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : nullptr;
CheckSelection(const_cast<SvxUnoTextRangeBase*>(this)->maSelection, pForwarder);
return maSelection;
}
void SetSelection( const ESelection& rSelection ) throw();
void CollapseToStart() throw();
......
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