1
0
mirror of synced 2025-02-07 14:51:25 +01:00

Add null check to avoid crash (#649)

This commit is contained in:
Ashiro12138 2024-07-12 01:16:51 +10:00 committed by GitHub
parent 99fb46ff92
commit a87343ca46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -326,8 +326,11 @@ namespace TJAPlayer3
tResetTitleTextureKey();
if (rCurrentlySelectedSong.list子リスト.Count != 1)
// INFO: This null check is added due to `list子リスト` might be null during rapid sorting
// Despite what editor tell you here it is possible to be null
if (rCurrentlySelectedSong != null &&
rCurrentlySelectedSong.list子リスト != null &&
rCurrentlySelectedSong.list子リスト.Count != 1)
{
if (TJAPlayer3.ConfigIni.TJAP3FolderMode)
{