Fix EditorInfoWindow crash on empty contentMimeTypes

This commit is contained in:
Rocka 2025-10-26 17:28:15 +08:00
parent ae0f26b21a
commit 2148dee2ed
No known key found for this signature in database
GPG Key ID: 28031158FFDD6853

View File

@ -93,7 +93,7 @@ object EditorInfoParser {
private fun parseStringArray(arr: Any?): String {
if (arr == null) return NULL
if (arr !is Array<*> || arr[0] !is String) return arr.toString()
if (arr !is Array<*>) return arr.toString()
return arr.joinToString()
}