huburt-Hu / NewbieGuide

Android 快速实现新手引导层的库,通过简洁链式调用,一行代码实现引导层的显示
Apache License 2.0
3.56k stars 521 forks source link

关于2.4.0的崩溃bug 请问升级版本了还有吗 #160

Open hf529270451 opened 4 years ago

hf529270451 commented 4 years ago

java.lang.NullPointerException

Attempt to invoke interface method 'void com.app.hubert.guide.lifecycle.FragmentLifecycle.onStart()' on a null object reference

com.app.hubert.guide.lifecycle.V4ListenerFragment.onStart(V4ListenerFragment.java)

通过升级到2.4.4可以解决这个bug吗

IAmWilling commented 4 years ago

我也是这个问题,友盟报错了

hy20160705 commented 2 years ago

同遇到类似的情况

Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void com.app.hubert.guide.lifecycle.FragmentLifecycle.onDestroy()' on a null object reference
    at com.app.hubert.guide.lifecycle.V4ListenerFragment.onDestroy(V4ListenerFragment.java:3)
hy20160705 commented 2 years ago

查出问题了 主要是Fragment重建时 V4ListenerFragment是重新构建的 mFragmentLifecycle此时为null 没有重新赋值 导致空指针