diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-08 08:53:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-02-08 10:41:06 +0000 |
commit | 0008b7564af7ccca432ddb0eb0afccf1c8a7ea2b (patch) | |
tree | dc7c7816e7c320b2b2537c8281cc382980f5a12f /vcl | |
parent | 0898d12d218431a7879c0d891a024702ce35c0b1 (diff) |
coverity#1400142 Dereference after null check
Change-Id: Ifdb77761a6d8a6dbcbb8f59c84734f767fe0dfaf
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/edit.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 63e9a700e739..9490014c2bb1 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2026,7 +2026,7 @@ void Edit::Command( const CommandEvent& rCEvt ) { ImplSetSelection( Selection( 0, maText.getLength() ) ); } - else if (sCommand == "specialchar") + else if (sCommand == "specialchar" && pImplFncGetSpecialChars) { OUString aChars = pImplFncGetSpecialChars( this, GetFont() ); SetSelection( aSaveSel ); |