Application crashes when nomination for deletion is pressed
See original GitHub issueSteps to reproduce:
- Install the Application.
- Skip the Login or Signup section
- Go to the Explore section and select one image
- Tap the button Nominate for deletion
System logs:
Process: fr.free.nrw.commons.beta, PID: 12723
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
at fr.free.nrw.commons.media.MediaDetailFragment.onDeleteButtonClicked(MediaDetailFragment.java:351)
at fr.free.nrw.commons.media.MediaDetailFragment_ViewBinding$5.doClick(MediaDetailFragment_ViewBinding.java:90)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:18)
at android.view.View.performClick(View.java:7125)
at android.view.View.performClickInternal(View.java:7102)
at android.view.View.access$3500(View.java:801)
at android.view.View$PerformClick.run(View.java:27336)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
2020-03-15 20:11:48.077 12723-12723/fr.free.nrw.commons.beta E/ACRA: ACRA caught a NullPointerException for fr.free.nrw.commons.beta
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
at fr.free.nrw.commons.media.MediaDetailFragment.onDeleteButtonClicked(MediaDetailFragment.java:351)
at fr.free.nrw.commons.media.MediaDetailFragment_ViewBinding$5.doClick(MediaDetailFragment_ViewBinding.java:90)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:18)
at android.view.View.performClick(View.java:7125)
at android.view.View.performClickInternal(View.java:7102)
at android.view.View.access$3500(View.java:801)
at android.view.View$PerformClick.run(View.java:27336)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Device and Android version: Device name - Pixel 3a XL Android version - Android 10 API level - 29
Would you like to work on the issue? Yes
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
my app crashes "sometimes" when i press delete button
When items are deleted, positions and therefore ids change, making the ids to not be stable. Either remove the setHasStableIds(true) or come ...
Read more >Wikipedia:Criteria for speedy deletion
Users nominating a page for speedy deletion should specify which criterion/criteria the page meets, and should notify the page creator and any major ......
Read more >Category:Nominated for deletion | Bandipedia - Fandom
Category:Nominated for deletion contains all to-be-deleted articles on the Crash Bandicoot Wiki. This category is automatically added by {{delete}}; as such, ...
Read more >Solved: Using Background Scripts to Delete Massive Amounts...
My question is, is there any concern running this script to delete millions of records at once? Will it freeze up resources, or...
Read more >Wikivoyage:Votes for deletion
Nominations or comments should follow a rationale based on our deletion ... The purpose of this page is limited to the interpretation and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@madhurgupta10 try not being logged in, the warning on that
equals
is unsurprisinglymay produce NPE
I can see the issue now.