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

华为手机偶现PictureSelectorTransparentActivity CustomCameraView类空指针崩溃 #2407

Closed
longrenzhut opened this issue Jun 24, 2022 · 2 comments

Comments

@longrenzhut
Copy link

Current use version?

v3.0.5

Will this problem occur in demo?

####不能

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.zhongcai.xiaofeng/com.luck.picture.lib.basic.PictureSelectorTransparentActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'com.luck.picture.lib.style.SelectMainStyle com.luck.picture.lib.style.PictureSelectorStyle.getSelectMainStyle()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4272)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4474)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:93)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2696)
at android.os.Handler.dispatchMessage(Handler.java:109)
at android.os.Looper.loop(Looper.java:228)
at android.app.ActivityThread.main(ActivityThread.java:9016)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:614)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1129)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'com.luck.picture.lib.style.SelectMainStyle com.luck.picture.lib.style.PictureSelectorStyle.getSelectMainStyle()' on a null object reference
at com.luck.picture.lib.basic.PictureSelectorTransparentActivity.immersive(PictureSelectorTransparentActivity.java:40)
at com.luck.picture.lib.basic.PictureSelectorTransparentActivity.onCreate(PictureSelectorTransparentActivity.java:33)
at android.app.Activity.performCreate(Activity.java:8400)
at android.app.Activity.performCreate(Activity.java:8380)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1323)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4243)

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.Bundle.getBoolean(java.lang.String, boolean)' on a null object reference
at com.luck.lib.camerax.CustomCameraView.setCameraConfig(CustomCameraView.java:472)
at com.luck.lib.camerax.PictureCameraActivity$1.run(PictureCameraActivity.java:59)
at android.os.Handler.handleCallback(Handler.java:955)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:228)
at android.app.ActivityThread.main(ActivityThread.java:9016)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:614)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1129)

Android 11 | HUAWEI NAM-AL00 | V1.0

@luyanlong
Copy link

I met it too. Have you solved it?

1 similar comment
@WDevaloper
Copy link

I met it too. Have you solved it?

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

4 participants