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

android 10 华为手机使用崩溃 #1713

Closed
xuzhu19930323 opened this issue Oct 29, 2020 · 0 comments
Closed

android 10 华为手机使用崩溃 #1713

xuzhu19930323 opened this issue Oct 29, 2020 · 0 comments

Comments

@xuzhu19930323
Copy link

使用库版本号: pictureSelector : "2.5.8",

报错信息:
java.lang.RuntimeException: Unable to start activity ComponentInfo{cn.dostudio.app.wajie/com.luck.picture.lib.PictureSelectorPreviewWeChatStyleActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3877)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4056)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
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:2464)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8299)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1052)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
at com.luck.picture.lib.PictureSelectorPreviewWeChatStyleActivity.onSelectNumChange(PictureSelectorPreviewWeChatStyleActivity.java:290)
at com.luck.picture.lib.PicturePreviewActivity.initPictureSelectorStyle(PicturePreviewActivity.java:373)
at com.luck.picture.lib.PictureSelectorPreviewWeChatStyleActivity.initPictureSelectorStyle(PictureSelectorPreviewWeChatStyleActivity.java:119)
at com.luck.picture.lib.PictureBaseActivity.onCreate(PictureBaseActivity.java:182)
at com.luck.picture.lib.PicturePreviewActivity.onCreate(PicturePreviewActivity.java:91)
at android.app.Activity.performCreate(Activity.java:8085)
at android.app.Activity.performCreate(Activity.java:8073)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1320)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3850)
... 11 more

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