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 invoke virtual method 'java.util.ArrayList android.os.Bundle.getStringArrayList(java.lang.String)' on a null object reference #2447

Closed
laizhiren19940409 opened this issue Aug 15, 2022 · 0 comments

Comments

@laizhiren19940409
Copy link

Current use version?

当前使用的版本是多少?

    // PictureSelector basic library (Necessary)
    implementation 'io.github.lucksiege:pictureselector:v3.10.3'
    // image compress library (Not necessary)
    implementation 'io.github.lucksiege:compress:v3.10.3'
    // uCrop library (Not necessary)
    implementation 'io.github.lucksiege:ucrop:v3.10.3'
    // simple camerax library (Not necessary)
    implementation 'io.github.lucksiege:camerax:v3.10.3'

Will this problem occur in demo?

Demo能否复现这问题?

Describe the problem or provide an error log?

描述问题或提供错误log?

# main(2)

java.lang.NullPointerException

Attempt to invoke virtual method 'java.util.ArrayList android.os.Bundle.getStringArrayList(java.lang.String)' on a null object reference

解析原始
1
java.lang.RuntimeException:Unable to start activity ComponentInfo{com.ylab.xlonetoone/com.yalantis.ucrop.UCropMultipleActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.ArrayList android.os.Bundle.getStringArrayList(java.lang.String)' on a null object reference
2
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2951)
3
......
4
java.lang.NullPointerException:Attempt to invoke virtual method 'java.util.ArrayList android.os.Bundle.getStringArrayList(java.lang.String)' on a null object reference
5
com.yalantis.ucrop.UCropMultipleActivity.void initCropFragments()(UCropMultipleActivity.java:107)
6
com.yalantis.ucrop.UCropMultipleActivity.void onCreate(android.os.Bundle)(UCropMultipleActivity.java:96)
7
android.app.Activity.performCreate(Activity.java:7144)
8
android.app.Activity.performCreate(Activity.java:7135)
9
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
10
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
11
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
12
android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
13
android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
14
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
15
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
16
android.os.Handler.dispatchMessage(Handler.java:106)
17
android.os.Looper.loop(Looper.java:193)
18
android.app.ActivityThread.main(ActivityThread.java:6718)
19
java.lang.reflect.Method.invoke(Native Method)
20
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
21
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
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