From 0008b7564af7ccca432ddb0eb0afccf1c8a7ea2b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 8 Feb 2017 08:53:39 +0000 Subject: coverity#1400142 Dereference after null check Change-Id: Ifdb77761a6d8a6dbcbb8f59c84734f767fe0dfaf --- vcl/source/control/edit.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl') 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 ); -- cgit