null check

This commit is contained in:
Salvatore Giordano
2021-06-23 12:30:10 +02:00
parent bb642842f9
commit 151054b2c6
@@ -798,7 +798,7 @@ class MessageInputState extends State<MessageInput> {
setState(() {
_commandEnabled = true;
});
_commandsOverlay!.remove();
_commandsOverlay?.remove();
_commandsOverlay = null;
} else {
_commandsOverlay = _buildCommandsOverlayEntry();