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

Attempt to invoke virtual method 'android.view.Window android.app.Activity.getWindow()' on a null object reference #488

Open
jxtx123456 opened this issue May 29, 2023 · 1 comment

Comments

@jxtx123456
Copy link

**什么jzvd版本
cn.jzvd:jiaozivideoplayer:7.7.0
**什么播放器内核
exoplayer
**相关log是什么
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window android.app.Activity.getWindow()' on a null object reference
**demo是否有这个问题
不知道,概率性出现
**自己做了哪些修改
提前加了非空判断还是会出现
**如何操作复现
横屏播放的时候有概率会出现
**什么安卓版本,什么机型
Android7以及以上的机型都出现过
**截图或者视频说明情况
image

@yukaida
Copy link

yukaida commented Sep 1, 2023

遇到了类似的问题,在listview中使用,从item点击全屏按钮 进入全屏
部分机型(小米Mix3 华为P9) 会回调

setScreenNormal:
setScreenFullscreen:
setScreenNormal:

导致全屏状态下播放 但内部却是普通状态
并且全屏/非全屏按钮 显示的是「 」 点击后clash

image

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

No branches or pull requests

2 participants