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

Bug #35

Open
zy990081568 opened this issue Mar 20, 2019 · 0 comments
Open

Bug #35

zy990081568 opened this issue Mar 20, 2019 · 0 comments

Comments

@zy990081568
Copy link

zy990081568 commented Mar 20, 2019

在beforeHookedMethod 中使用 EventCenter.notifyForBypassFlags()这个方法可能存在问题, action 参数默认返回false, 可能会导致 afterHookedMethod 中返回值为null

登录微信闪退应该就是这个原因导致

原始代码
inline fun notifyForBypassFlags() {
val shouldBypass = notifyForResults(event, action).any()
}

修改点
inline fun notifyForBypassFlags() {
val shouldBypass = notifyForResults(event, action).any {
it
}
}

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

1 participant