Skip to content

Commit

Permalink
Fix NPE by purifying sideswipe.
Browse files Browse the repository at this point in the history
  • Loading branch information
leafmoes committed Dec 15, 2023
1 parent db98d06 commit 6ae800c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ import xyz.nextalone.util.throwOrTrue
import java.lang.reflect.Array
import java.lang.reflect.Modifier
import java.util.SortedMap

//侧滑栏精简
@FunctionHookEntry
@UiItemAgentEntry
Expand Down Expand Up @@ -278,7 +277,10 @@ object SimplifyQQSettingMe : MultiItemDelayableHook("SimplifyQQSettingMe",target
m.hookAfter {
for (activeItem in activeItems) {
if (items2Hide[activeItem] == it.args[0]) {
(it.result as View).setViewZeroSize()
if (it.result != null){
val view = it.result as View
view.setViewZeroSize()
}
}
}
}
Expand Down

0 comments on commit 6ae800c

Please sign in to comment.