Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a NPE crash when clicking on TextView "Card player" #515

Open
2021QTester opened this issue Jun 30, 2021 · 0 comments
Open

a NPE crash when clicking on TextView "Card player" #515

2021QTester opened this issue Jun 30, 2021 · 0 comments

Comments

@2021QTester
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant