Do not throw exception on not-found serialized class from knm
This commit is contained in:
+3
-2
@@ -23,8 +23,9 @@ class KonanClassDataFinder(
|
|||||||
val nameList = proto.classNameList
|
val nameList = proto.classNameList
|
||||||
|
|
||||||
val index = nameList.indexOfFirst { nameResolver.getClassId(it) == classId }
|
val index = nameList.indexOfFirst { nameResolver.getClassId(it) == classId }
|
||||||
if (index == -1)
|
if (index == -1) {
|
||||||
error("Could not find serialized class $classId")
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
val foundClass = proto.getClasses(index) ?: error("Could not find data for serialized class $classId")
|
val foundClass = proto.getClasses(index) ?: error("Could not find data for serialized class $classId")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user