mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
wasm: fix writing debug info when some class was not found
This commit is contained in:
parent
1549a84b40
commit
5d237a98ae
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user