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 'int me.yokeyword.fragmentation.anim.FragmentAnimator.getEnter()' on a null object reference #1122

Closed
sea5241 opened this issue Apr 24, 2019 · 1 comment

Comments

@sea5241
Copy link

sea5241 commented Apr 24, 2019

java.lang.NullPointerException:Attempt to invoke virtual method 'int me.yokeyword.fragmentation.anim.FragmentAnimator.getEnter()' on a null object reference

6 me.yokeyword.fragmentation.helper.internal.AnimatorHelper.initEnterAnim(AnimatorHelper.java:63)
7 me.yokeyword.fragmentation.helper.internal.AnimatorHelper.notifyChanged(AnimatorHelper.java:29)
8 me.yokeyword.fragmentation.helper.internal.AnimatorHelper.(AnimatorHelper.java:24)
9 me.yokeyword.fragmentation.SupportFragmentDelegate.onCreate(SupportFragmentDelegate.java:120)

用bugly收集日志会有这个报错,感觉是不是需要在获取到
mFragmentAnimator = savedInstanceState.getParcelable(TransactionDelegate.FRAGMENTATION_STATE_SAVE_ANIMATOR);
判断一下mFragmentAnimator是不是空的,是的话赋值,或者在使用mFragmentAnimator的时候判断空

YoKeyword added a commit that referenced this issue Jun 7, 2019
…ParcelableException` && `NullPointerException(FragmentAnimator.getEnter())`
@YoKeyword
Copy link
Owner

v1.3.7

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