Skip to content

Commit

Permalink
fix #99 crash
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Aug 6, 2021
1 parent 8853640 commit 410e665
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,11 @@ open class RequestScreenHandler(
resort = true
view.update(stack)
} else if (view.count != stack.count) {
val filled = filledStacks.first { view.isItemAndTagEqual(it) }
filled.count -= view.count - stack.count
view.update(stack)
val filled = filledStacks.firstOrNull { view.isItemAndTagEqual(it) }
if (filled != null) {
filled.count -= view.count - stack.count
view.update(stack)
}
}
}
}
Expand Down

0 comments on commit 410e665

Please sign in to comment.