wordpress-mobile / wordpress-mobile/WordPress-Android
NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.endsWith(java.lang.String)' on a null ...
Open
Nobody has claimed this yet.
[Type] Crash
Gutenberg
Posting/Editing
- Dominant language
- Kotlin
- Stars
- 3.2k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 69
Description
Sentry Issue: JETPACK-ANDROID-81G
NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.endsWith(java.lang.String)' on a null object reference
at com.google.android.exoplayer2.util.Util.inferContentType(Util.java:1840)
at com.brentvatne.exoplayer.ReactExoplayerView.buildMediaSource(ReactExoplayerView.java:499)
at com.brentvatne.exoplayer.ReactExoplayerView.access$2700(ReactExoplayerView.java:84)
at com.brentvatne.exoplayer.ReactExoplayerView$6.run(ReactExoplayerView.java:449)
at android.os.Handler.handleCallback(Handler.java:942)
...
(7 additional frame(s) were not displayed)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Sentry stack trace and inspect ReactExoplayerView.java around buildMediaSource at line 499, then compare its input with ExoPlayer's Util.java inferContentType at line 1840. Trace how the null value reaches this path and verify that the reported crash no longer occurs for the affected media input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100