[Android] Crash when linking an account with wrong pin
Issue generated from Tuleap's migration script. Originally submitted by: Hadrien De Sousa (hdesousa)
The application crash when linking an account if the user enter a wrong pin.
We have a NPE because the account is not created :
E/cx.ring.application.RingApplication: Uncaught Exception detected in thread
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Boolean cx.ring.model.Account.isRing()' on a null object reference
at cx.ring.client.AccountWizard$1.run(AccountWizard.java:383)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)