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

Deleted activity cannot be recovered correctly #311

Open
sjl872964789 opened this issue Aug 4, 2022 · 1 comment
Open

Deleted activity cannot be recovered correctly #311

sjl872964789 opened this issue Aug 4, 2022 · 1 comment

Comments

@sjl872964789
Copy link

Smartphone

  • App version: 1.4.2
  • Android version/rom: Android 11.0
  • Device: OnePlus 8T

Steps to Reproduce

Explain what you did to encounter the issue

  1. Add a new activity "test"
  2. Delete the activity "test"
  3. Open "Edit Activities"
  4. Click "show deleted"
  5. Click the deleted activity "test"
  6. Click on "ok"
  7. The activity "test" still does not exist in the main interface
  8. Open the activity from "Edit Activities"
  9. Enter "test"
  10. Click "save"
  11. Click on the "Reject current edit and open existing activity with same name instead"
  12. Crash

Expected behavior

The deleted activity can be restored without crashing

Video

lv_0_20220804202353.mp4

Logcat

08-04 11:54:59.035   525   525 E AndroidRuntime: FATAL EXCEPTION: main
08-04 11:54:59.035   525   525 E AndroidRuntime: Process: de.rampro.activitydiary, PID: 525
08-04 11:54:59.035   525   525 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String de.rampro.activitydiary.model.DiaryActivity.getName()' on a null object reference
08-04 11:54:59.035   525   525 E AndroidRuntime:        at de.rampro.activitydiary.ui.generic.EditActivity$QHandler$3.onClick(EditActivity.java:202)
08-04 11:54:59.035   525   525 E AndroidRuntime:        at android.view.View.performClick(View.java:6256)
08-04 11:54:59.035   525   525 E AndroidRuntime:        at android.view.View$PerformClick.run(View.java:24701)
08-04 11:54:59.035   525   525 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:789)
08-04 11:54:59.035   525   525 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:98)
08-04 11:54:59.035   525   525 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:164)
08-04 11:54:59.035   525   525 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6541)
08-04 11:54:59.035   525   525 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
08-04 11:54:59.035   525   525 E AndroidRuntime:        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
08-04 11:54:59.035   525   525 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
@sjl872964789
Copy link
Author

Hi,any update about this issue?It would be really appreciated to get your concern on this.

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