Bug with command line in client part of android vcmi version

Hello all! Recently noticed that if I have command line without keyboard as on screenshot 1 and I trying to exit cmd and press key “Exit” (key like arrow on touchscreen) then app crashes.
In other case if keyboard displayed and I trying to exit cmd and press key “Exit” (screnshot 2) then exit from cmd perfomed correctly


How can i debug this problem and find out is that problem of my device or bug? What way to do this?

I think that it here: