PictureSelector bugly捕获到一个空指针异常CustomCameraView文件

r6hnlfcb  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(55)

Current use version?

当前使用的版本是多少?

3.11.2

Will this problem occur in demo?

Demo能否复现这问题?

不能

Describe the problem or provide an error log?

描述问题或提供错误log?
Attempt to invoke virtual method 'int android.view.Display.getRotation()' on a null object reference

com.luck.lib.camerax.CustomCameraView$DisplayListener.onDisplayChanged(CustomCameraView.java:622)
wfypjpf4

wfypjpf41#

我也碰到这个问题,请问你修复了吗?
我看bugly的问题主要是在android13和14上

#2 main
java.lang.NullPointerException
Attempt to invoke virtual method 'int android.view.Display.getRotation()' on a null object reference
解析原始
1
com.luck.lib.camerax.CustomCameraView$l.onDisplayChanged(CustomCameraView.java:3)
2
android.hardware.display.DisplayManagerGlobal$DisplayListenerDelegate.handleMessage(DisplayManagerGlobal.java:1143)
3
android.hardware.display.DisplayManagerGlobal$DisplayListenerDelegate.lambda$sendDisplayEvent$0$android-hardware-display-DisplayManagerGlobal$DisplayListenerDelegate(DisplayManagerGlobal.java:1111)
4
android.hardware.display.DisplayManagerGlobal$DisplayListenerDelegate$$ExternalSyntheticLambda0.run(Unknown Source:6)
5
android.os.Handler.handleCallback(Handler.java:984)
6
android.os.Handler.dispatchMessage(Handler.java:104)
7
android.os.Looper.loopOnce(Looper.java:238)
8
android.os.Looper.loop(Looper.java:357)
9
android.app.ActivityThread.main(ActivityThread.java:8194)
10
java.lang.reflect.Method.invoke(Native Method)
11
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
12
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:957)

相关问题