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.

Crash on tapping Last Item in the Featured Fragment.

See original GitHub issue

Summary:

Summarize your issue in one sentence (what goes wrong, what did you expect to happen) App crashes on clicking the last element in the featured fragment.

Steps to reproduce:

  1. Go to the Explore tab
  2. Scroll all the way down in the featured section.
  3. Tap on the last item.

What did you expect the app to do, and what did you see instead? No crash and the media detail fragment loaded as usual.

System logs:

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String fr.free.nrw.commons.Media.getThumbUrl()' on a null object reference at fr.free.nrw.commons.media.MediaDetailFragment.setupImageView(MediaDetailFragment.java:442) at fr.free.nrw.commons.media.MediaDetailFragment.setTextFields(MediaDetailFragment.java:526) at fr.free.nrw.commons.media.MediaDetailFragment.displayMediaDetails(MediaDetailFragment.java:345) at fr.free.nrw.commons.media.MediaDetailFragment.access$100(MediaDetailFragment.java:81) at fr.free.nrw.commons.media.MediaDetailFragment$1.onGlobalLayout(MediaDetailFragment.java:305) at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:1056) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2629) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1722) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7605) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1041) at android.view.Choreographer.doCallbacks(Choreographer.java:864) at android.view.Choreographer.doFrame(Choreographer.java:799) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1026) 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:7397) 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:935)

Device and Android version:

Nokia 6.1+ android 10.

Commons app version: Latest Master.

Would you like to work on the issue? Yes.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
misaochancommented, Feb 2, 2021

@4D17Y4 Please feel free in that case. 😃

0reactions
misaochancommented, Feb 4, 2021

Thanks for your investigations, I will close it then. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

App crashes when tapping multiple times on Bottom ...
When repeatedly tapping on the BottomNavView , for some reason it reaches to a non-saved fragmentTransaction (non-committed); and just after ...
Read more >
Duplicate Android Navigation — Bug or Feature?
If every fragment has access to all other fragments it won't crash. However, it will navigate twice and put the first destination on...
Read more >
A fix for “Navigation action cannot be found in the current ...
This is an attempt to recreate what happens when the screen lags allowing a user to tap on a button/view more than once....
Read more >
Manage Crash Detection on iPhone 14 models - Apple Support
What is Crash Detection? If your iPhone 14 detects a severe car crash, it can help connect you to emergency services and notify...
Read more >
Application crashes when navigating twice through the same ...
In another application I have it where navigating to a fragment through a global action makes it so that the NavigationDrawer no longer...
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