Current use version?
当前使用的版本是多少?
##### V3.10.5
Will this problem occur in demo?
Demo能否复现这问题?
bugly报出来的,Demo无法复现,我在issues中没有找到相关的修复答案,所以在此提交
Describe the problem or provide an error log?
描述问题或提供错误log?
"java.lang.NullPointerException: Attempt to invoke virtual method 'androidx.fragment.app.FragmentManager androidx.fragment.app.FragmentActivity.getSupportFragmentManager()' on a null object reference
at com.luck.picture.lib.basic.PictureCommonFragment.k(PictureCommonFragment.java:1927)
at com.luck.picture.lib.PictureSelectorPreviewFragment.c(PictureSelectorPreviewFragment.java:401)
at com.luck.picture.lib.PictureSelectorPreviewFragment$1.onMagicalViewFinish(PictureSelectorPreviewFragment.java:365)
at com.luck.picture.lib.magical.MagicalView$6.onAnimationEnd(MagicalView.java:353)
at android.animation.Animator$AnimatorListener.onAnimationEnd(Animator.java:600)
at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1333)
at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1575)
at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:307)
at android.animation.AnimationHandler.-$$Nest$mdoAnimationFrame(Unknown Source:0)
at android.animation.AnimationHandler$1.doFrame(AnimationHandler.java:86)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1449)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1459)
at android.view.Choreographer.doCallbacks(Choreographer.java:1089)
at android.view.Choreographer.doFrame(Choreographer.java:998)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1431)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8261)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
"
1条答案
按热度按时间afdcj2ne1#
就是能不能在 Fragment调用 getActvity() 的时候增加null判断,这个怎么说呢正常不会这样,但是异常下的异常就null了