fix(editor): NoSuchElementException when parsing color value from color scheme

This commit is contained in:
Akash Yadav
2023-11-10 00:44:17 +05:30
parent 999baab100
commit 51b594c417
@@ -47,7 +47,7 @@ fun IDEColorScheme.parseColorValue(value: String?, colorId: Boolean = true): Int
val refName = value.substring(1)
val refValue =
definitions[refName] ?: throw ParseException("Referenced color '$value' not found")
return if (colorId) refValue else colorIds.get(refValue)
return if (colorId) refValue else colorIds.getOrDefault(refValue, 0)
}
if (value[0] == '#') {