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 c9390e8 commit bfe8857
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,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 bfe8857

Please sign in to comment.