I am doing some test on AnyMemo with automated testing tools just like Monkey. Several days ago, I found a NPE crash when clicking and long clicking on the TextView with text "Card player" in Activity ui.AnyMemo.
Would you please have a look?
Device: x86 Android emulator 6.0 provided by Google
Anememo Version: 10.11.6
Source: downloaded directly from Github releases
The logcat is as follows:
06-25 18:00:48.756 3439 3439 E AndroidRuntime: FATAL EXCEPTION: main
06-25 18:00:48.756 3439 3439 E AndroidRuntime: Process: org.liberty.android.fantastischmemo, PID: 3439
06-25 18:00:48.756 3439 3439 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Integer org.liberty.android.fantastischmemo.entity.Card.getId()' on a null object reference
06-25 18:00:48.756 3439 3439 E AndroidRuntime: at org.liberty.android.fantastischmemo.ui.CardPlayerActivity.bindCardPlayerService(CardPlayerActivity.java:3)
06-25 18:00:48.756 3439 3439 E AndroidRuntime: at org.liberty.android.fantastischmemo.ui.CardPlayerActivity.onPostInit(CardPlayerActivity.java:9)
06-25 18:00:48.756 3439 3439 E AndroidRuntime: at org.liberty.android.fantastischmemo.ui.QACardActivity$2.run(QACardActivity.java:1)
06-25 18:00:48.756 3439 3439 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
06-25 18:00:48.756 3439 3439 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
06-25 18:00:48.756 3439 3439 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
06-25 18:00:48.756 3439 3439 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
06-25 18:00:48.756 3439 3439 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
06-25 18:00:48.756 3439 3439 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
06-25 18:00:48.756 3439 3439 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
I am doing some test on AnyMemo with automated testing tools just like Monkey. Several days ago, I found a NPE crash when clicking and long clicking on the TextView with text "Card player" in Activity ui.AnyMemo. Would you please have a look?
Device: x86 Android emulator 6.0 provided by Google Anememo Version: 10.11.6 Source: downloaded directly from Github releases
The logcat is as follows: 06-25 18:00:48.756 3439 3439 E AndroidRuntime: FATAL EXCEPTION: main 06-25 18:00:48.756 3439 3439 E AndroidRuntime: Process: org.liberty.android.fantastischmemo, PID: 3439 06-25 18:00:48.756 3439 3439 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Integer org.liberty.android.fantastischmemo.entity.Card.getId()' on a null object reference 06-25 18:00:48.756 3439 3439 E AndroidRuntime: at org.liberty.android.fantastischmemo.ui.CardPlayerActivity.bindCardPlayerService(CardPlayerActivity.java:3) 06-25 18:00:48.756 3439 3439 E AndroidRuntime: at org.liberty.android.fantastischmemo.ui.CardPlayerActivity.onPostInit(CardPlayerActivity.java:9) 06-25 18:00:48.756 3439 3439 E AndroidRuntime: at org.liberty.android.fantastischmemo.ui.QACardActivity$2.run(QACardActivity.java:1) 06-25 18:00:48.756 3439 3439 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739) 06-25 18:00:48.756 3439 3439 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 06-25 18:00:48.756 3439 3439 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 06-25 18:00:48.756 3439 3439 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417) 06-25 18:00:48.756 3439 3439 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 06-25 18:00:48.756 3439 3439 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 06-25 18:00:48.756 3439 3439 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)