wasm: fix writing debug info when some class was not found

This commit is contained in:
Alexey Andreev 2024-05-15 19:24:33 +02:00
parent 1549a84b40
commit 5d237a98ae

View File

@ -742,7 +742,7 @@ public class WasmClassGenerator {
debug.instanceField("parent", 56, FieldType.OBJECT);
debug.endClass();
} else if (isManagedClass(className)) {
var parent = data.cls.getParent() != null
var parent = data.cls != null && data.cls.getParent() != null
? indexes.get(ValueType.object(data.cls.getParent()))
: -1;
if (data.isInferface) {