question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Application crashes when nomination for deletion is pressed

See original GitHub issue

Steps to reproduce:

  1. Install the Application.
  2. Skip the Login or Signup section
  3. Go to the Explore section and select one image
  4. 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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
macgillscommented, Mar 16, 2020

image @madhurgupta10 try not being logged in, the warning on that equals is unsurprisingly may produce NPE

1reaction
madhurgupta10commented, Mar 16, 2020

I can see the issue now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found