From 214b38fd15efac0a7bf232eded65e437ed5585cd Mon Sep 17 00:00:00 2001 From: baegteun Date: Sun, 22 Sep 2024 14:05:14 +0900 Subject: [PATCH] =?UTF-8?q?:recycle:=20::=20[#1296]=20=EC=A4=91=EB=B3=B5?= =?UTF-8?q?=EB=90=9C=20=EA=B3=A1=EC=9D=84=20=EC=82=AD=EC=A0=9C=ED=95=A0=20?= =?UTF-8?q?=EB=95=8C=20Crash=EB=82=98=EB=8A=94=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BaseFeature/Sources/Etc/PlayState/PlayState+Playlist.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Projects/Features/BaseFeature/Sources/Etc/PlayState/PlayState+Playlist.swift b/Projects/Features/BaseFeature/Sources/Etc/PlayState/PlayState+Playlist.swift index cf85ac66b..1bef4fcf0 100644 --- a/Projects/Features/BaseFeature/Sources/Etc/PlayState/PlayState+Playlist.swift +++ b/Projects/Features/BaseFeature/Sources/Etc/PlayState/PlayState+Playlist.swift @@ -42,6 +42,7 @@ final class Playlist { } func remove(at index: Int) { + guard list[safe: index] != nil else { return } list.remove(at: index) }