wasm: fix NPE

This commit is contained in:
Alexey Andreev 2023-08-19 17:10:53 +02:00
parent 0e7d6b65b4
commit e9d206eed0

View File

@ -565,7 +565,7 @@ public class WasmTarget implements TeaVMTarget, TeaVMWasmHost {
if (cEmitted) { if (cEmitted) {
emitC(module, buildTarget, getBaseName(outputName) + ".wasm.c"); emitC(module, buildTarget, getBaseName(outputName) + ".wasm.c");
} }
if (statsCollector != null) { if (this.statsCollector != null) {
writeStats(buildTarget, outputName); writeStats(buildTarget, outputName);
} }