From e9d206eed01db57a0183c7ee5821b6f1fe2757ee Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Sat, 19 Aug 2023 17:10:53 +0200 Subject: [PATCH] wasm: fix NPE --- core/src/main/java/org/teavm/backend/wasm/WasmTarget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/teavm/backend/wasm/WasmTarget.java b/core/src/main/java/org/teavm/backend/wasm/WasmTarget.java index fe5a46331..88a61e04f 100644 --- a/core/src/main/java/org/teavm/backend/wasm/WasmTarget.java +++ b/core/src/main/java/org/teavm/backend/wasm/WasmTarget.java @@ -565,7 +565,7 @@ public class WasmTarget implements TeaVMTarget, TeaVMWasmHost { if (cEmitted) { emitC(module, buildTarget, getBaseName(outputName) + ".wasm.c"); } - if (statsCollector != null) { + if (this.statsCollector != null) { writeStats(buildTarget, outputName); }