After the application calls glide, the glide library reports a null pointer error.
Future Task
What is the motivation?
Application using glide
What kind of solution can be considered?
NA
What do you want to discuss?
java.lang.NullPointerException: Attempt to invoke virtual method 'com.bumptech.glide.manager.RequestManagerRetriever com.bumptech.glide.Glide.getRequestManagerRetriever()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4018) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4168) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:114) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:144) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:101) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2630) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:257) at android.os.Looper.loop(Looper.java:368) at android.app.ActivityThread.main(ActivityThread.java:8826) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'com.bumptech.glide.manager.RequestManagerRetriever com.bumptech.glide.Glide.getRequestManagerRetriever()' on a null object reference at com.bumptech.glide.manager.SupportRequestManagerFragment.registerFragmentWithRoot(SourceFile:3) at com.bumptech.glide.manager.SupportRequestManagerFragment.onAttach(SourceFile:5) at androidx.fragment.app.Fragment.performAttach(SourceFile:7) at androidx.fragment.app.w.c(SourceFile:15) at androidx.fragment.app.w.m(SourceFile:22) at androidx.fragment.app.y.t(SourceFile:3) at androidx.fragment.app.p.Q0(SourceFile:5) at androidx.fragment.app.p.Q(SourceFile:3) at androidx.fragment.app.p.z(SourceFile:4) at androidx.fragment.app.Fragment.restoreChildFragmentState(SourceFile:3) at androidx.fragment.app.Fragment.onCreate(SourceFile:2) at androidx.fragment.app.Fragment.performCreate(SourceFile:6) at androidx.fragment.app.w.e(SourceFile:5) at androidx.fragment.app.w.m(SourceFile:21) at androidx.fragment.app.y.t(SourceFile:3) at androidx.fragment.app.p.Q0(SourceFile:5) at androidx.fragment.app.p.Q(SourceFile:3) at androidx.fragment.app.p.z(SourceFile:4) at androidx.fragment.app.j.f(Unknown Source:4) at androidx.fragment.app.FragmentActivity.onCreate(SourceFile:3) at com.filemanager.common.base.BaseVMActivity.onCreate(SourceFile:1) at com.oplus.encrypt.EncryptActivity.onCreate(SourceFile:1) at android.app.Activity.performCreate(Activity.java:8757) at android.app.Activity.performCreate(Activity.java:8729) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1475) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3992) ... 12 more
Please add relevant labels
Bug Reporting
NA
Steps to Reproduce
Automation script runs out
Actual Results (include screenshots)
NullPointerException: Attempt to invoke virtual method 'com.bumptech.glide.manager.RequestManagerRetriever com.bumptech.glide.Glide.getRequestManagerRetriever()' on a null object reference
Expected Results (include screenshots)
No error reported
URL
OS details
- Device: OPPO
- OS: OS 15
Please add relevant labels
Source: wasabeef/glide-transformations