1
0
Fork 0

attempt to prevent the SuggestionOps.setTextField NullPointerException when shutting down

This commit is contained in:
sspanak 2025-02-09 14:28:17 +02:00 committed by Dimo Karaivanov
parent 4d714cf5e7
commit 96d8ad4494

View file

@ -90,7 +90,7 @@ public abstract class TypingHandler extends KeyPadHandler {
// changing the TextField and notifying all interested classes is an atomic operation // changing the TextField and notifying all interested classes is an atomic operation
appHacks = new AppHacks(inputType, textField, textSelection); appHacks = new AppHacks(inputType, textField, textSelection);
suggestionOps.setTextField(textField); suggestionOps.setTextField(connection == null || field == null ? null : textField);
} }