Avoid UninitializedPropertyAccessException

This commit is contained in:
cketti 2022-03-21 17:54:45 +01:00
parent 6c325f1185
commit 0f3df9d2e2

View file

@ -675,7 +675,7 @@ open class MessageList :
override fun dispatchKeyEvent(event: KeyEvent): Boolean {
var eventHandled = false
if (event.action == KeyEvent.ACTION_DOWN && searchView.isIconified) {
if (event.action == KeyEvent.ACTION_DOWN && ::searchView.isInitialized && searchView.isIconified) {
eventHandled = onCustomKeyDown(event)
}