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); }