ionic-team/ionic-plugin-keyboard

falls with Null Pointer Exception

Opened this issue · 6 comments

Dear Ionic team.

There is a problem with ionic-plugin-keyboard. I am very glad if you can fix
it.

There are cases where you come to onDestroy before plugin initialization
processing is completed, such as when you quit with the Android return
button immediately after it starts up, and it falls with Null Pointer
Exception.
I think that it can be countermeasured by the following change.

  1. IonicKeyboard.java, line 26:
    private View rootView = null;

  2. IonicKeyboard.java, line 131:
    if( rootView != null ){
    ...
    }

Thank you.

+1

+1

+1