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

java.lang.NullPointerException: Attempt to read from field on a null object reference #7379

Closed
4 tasks done
slavalamp opened this issue Nov 8, 2021 · 3 comments
Closed
4 tasks done
Labels
bug Issue is related to a bug

Comments

@slavalamp
Copy link

Checklist

*I think this could be connected to #6696, though? They seem to have the same or a similar error in logs, I can’t tell if this is the same bug or not.

Steps to reproduce the bug

I can’t reproduce that but I opened a short video (https://www.youtube.com/watch?v=f3WW-Q4LAug), clicked play and entered fullscreen mode. The video was playing in landscape without the image (only sound) for a couple seconds, I was touching the screen while I was waiting for it to load, it switched to portrait and the app crashed

Actual behavior

Crash

Expected behavior

Video loading normally without crashing

Screenshots/Screen recordings

Logs

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: GB
  • Content Language: en-GB
  • App Language: en_GB
  • Service: none
  • Version: 0.21.13
  • OS: Linux samsung/a3y17ltexx/a3y17lte:8.0.0/R16NW/A320FXXU4CRL1:user/release-keys 8.0.0 - 26
Crash log

java.lang.NullPointerException: Attempt to read from field 'android.widget.TextView org.schabi.newpipe.databinding.FragmentVideoDetailBinding.touchAppendDetail' on a null object reference
	at org.schabi.newpipe.fragments.detail.VideoDetailFragment.lambda$getOnControlsTouchListener$3(VideoDetailFragment.java:682)
	at org.schabi.newpipe.fragments.detail.VideoDetailFragment.$r8$lambda$vLEH4pcM9Zih8nQ0ZNDuXPnQ54Y(Unknown Source:0)
	at org.schabi.newpipe.fragments.detail.VideoDetailFragment$$ExternalSyntheticLambda18.run(Unknown Source:2)
	at org.schabi.newpipe.ktx.ViewUtils$animateAlpha$1.onAnimationEnd(View.kt:176)
	at android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1122)
	at android.animation.Animator$AnimatorListener.onAnimationEnd(Animator.java:552)
	at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1209)
	at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1449)
	at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:146)
	at android.animation.AnimationHandler.-wrap2(Unknown Source:0)
	at android.animation.AnimationHandler$1.doFrame(AnimationHandler.java:54)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:909)
	at android.view.Choreographer.doCallbacks(Choreographer.java:723)
	at android.view.Choreographer.doFrame(Choreographer.java:655)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897)
	at android.os.Handler.handleCallback(Handler.java:789)
	at android.os.Handler.dispatchMessage(Handler.java:98)
	at android.os.Looper.loop(Looper.java:164)
	at android.app.ActivityThread.main(ActivityThread.java:6944)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)


Device info

  • Android version/Custom ROM version: Android 8.0.0
  • Device model: Samsung Galaxy A3 (2017) / a3y17lte
@slavalamp slavalamp added the bug Issue is related to a bug label Nov 8, 2021
@TacoTheDank
Copy link
Member

@janTaja Hi, does this issue still occur on version 0.22.1?

@slavalamp
Copy link
Author

@TacoTheDank haha, i completely forgot about it... it never happened to me again and i can’t reproduce it now, but it seems i couldn’t reproduce it even when i created the issue, so i don’t know for sure.

@TacoTheDank
Copy link
Member

Interesting... In that case I will close it. If it somehow happens again, feel free to open another issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug
Projects
None yet
Development

No branches or pull requests

2 participants