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

The app crashed when I clicked on settings after deleting my selected default garden in the settings. #94

Closed
sagorahmed opened this issue Jun 27, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@sagorahmed
Copy link

Expected behavior

I expected that I could click on settings after deleting a garden, which was chosen for the default garden in the app settings before.

Actual behavior

After creating a garden and selecting it as the default garden of the app. When I tried open the settings after deleting that garden, then the app crashed.
It crashes every time after that crash and I am not able to use it.

How to reproduce

Here is every possible detail to reproduce the bug.

  1. Open the app.
  2. Create a new garden.
  3. Go to the settings and select it as your default garden.
  4. After that delete the garden you created and selected in the settings before.
  5. At last, try to go in the settings and notice the crash.
    You can't use this app after this crash. It would crash every time when you try to use the app.
  • App version: 2.5.1
  • Operating system: Android 6.0.1

Recording Of The Bug

Watch the bug on Youtube, It might help you to follow the steps.
https://youtu.be/rgYDQaS_Gfk

LogCat

06-27 12:30:55.182  2079  2079 E AndroidRuntime: FATAL EXCEPTION: main

06-27 12:30:55.182  2079  2079 E AndroidRuntime: Process: me.anon.grow, PID: 2079

06-27 12:30:55.182  2079  2079 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{me.anon.grow/me.anon.grow.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'android.view.MenuItem android.view.MenuItem.setChecked(boolean)' on a null object reference

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3319)

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3415)

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	at android.app.ActivityThread.access$1100(ActivityThread.java:229)

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1821)

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:102)

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:148)

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7325)

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

06-27 12:30:55.182  2079  2079 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'android.view.MenuItem android.view.MenuItem.setChecked(boolean)' on a null object reference

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	at me.anon.grow.MainActivity.onCreate(MainActivity.java:86)

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:6904)

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3266)

06-27 12:30:55.182  2079  2079 E AndroidRuntime: 	... 9 more
@7LPdWcaW 7LPdWcaW self-assigned this Jul 1, 2019
@7LPdWcaW 7LPdWcaW added the bug label Jul 1, 2019
@7LPdWcaW 7LPdWcaW added this to the v2.6 milestone Jul 1, 2019
7LPdWcaW added a commit that referenced this issue Aug 8, 2019
Merge branch 'fix/delete-garden' into develop

* fix/delete-garden:
  Removes default garden if garden is deleted
  Adds typed value to snacker action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants