Skip to content

Commit

Permalink
fix: SortAtPanel NPE on Non-NT QQ
Browse files Browse the repository at this point in the history
  • Loading branch information
klxiaoniu committed Jul 15, 2023
1 parent 347675d commit 74f7b1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/me/ketal/hook/SortAtPanel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ object SortAtPanel : CommonSwitchFunctionHook(
}

// for NT QQ 8.9.68.11450
val clazz = Initiator.load("com.tencent.mobileqq.aio.input.at.business.AIOAtSelectMemberUseCase")
for (m in clazz?.declaredMethods!!) {
val clazz = Initiator.load("com.tencent.mobileqq.aio.input.at.business.AIOAtSelectMemberUseCase") ?: return@throwOrTrue
for (m in clazz.declaredMethods) {
if (m.paramCount == 1 && m.returnType == Map::class.java && m.parameterTypes[0] == List::class.java) {
m.hookAfter {
val backMap = it.result as Map<String, List<Any>>
Expand Down

0 comments on commit 74f7b1e

Please sign in to comment.