coverity#1400142 Dereference after null check

Change-Id: Ifdb77761a6d8a6dbcbb8f59c84734f767fe0dfaf
This commit is contained in:
Caolán McNamara
2017-02-08 08:53:39 +00:00
parent 0898d12d21
commit 0008b7564a

View File

@@ -2026,7 +2026,7 @@ void Edit::Command( const CommandEvent& rCEvt )
{ {
ImplSetSelection( Selection( 0, maText.getLength() ) ); ImplSetSelection( Selection( 0, maText.getLength() ) );
} }
else if (sCommand == "specialchar") else if (sCommand == "specialchar" && pImplFncGetSpecialChars)
{ {
OUString aChars = pImplFncGetSpecialChars( this, GetFont() ); OUString aChars = pImplFncGetSpecialChars( this, GetFont() );
SetSelection( aSaveSel ); SetSelection( aSaveSel );