Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
fix: NullPointerException in PurgeEnter
Browse files Browse the repository at this point in the history
  • Loading branch information
mkx173 committed Jul 23, 2024
1 parent 473e04e commit ceaa8ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ class PurgeEnter : XposedContext(), IHooker, Obfuscated {
hookReplaceMethod(clazz, method) { param ->
val pbListView = getObjectField(param.thisObject, "com.baidu.tbadk.core.view.PbListView")
val pbListViewInnerView =
XposedHelpers.callMethod(pbListView, mPbListViewInnerViewConstructorName) as View
XposedHelpers.callMethod(pbListView, mPbListViewInnerViewConstructorName) as? View
val bdListView =
getObjectField(param.thisObject, "com.baidu.adp.widget.ListView.BdListView")
if (pbListViewInnerView.parent == null) {
if (pbListViewInnerView?.parent == null) {
XposedHelpers.callMethod(bdListView, "setNextPage", pbListView)
XposedHelpers.callMethod(bdListView, "setOverScrollMode", View.OVER_SCROLL_ALWAYS)
}
Expand Down

0 comments on commit ceaa8ab

Please sign in to comment.