diff --git a/tools/junit/src/main/java/org/teavm/junit/TeaVMTestRunner.java b/tools/junit/src/main/java/org/teavm/junit/TeaVMTestRunner.java index 2729c714a..8f653f1d1 100644 --- a/tools/junit/src/main/java/org/teavm/junit/TeaVMTestRunner.java +++ b/tools/junit/src/main/java/org/teavm/junit/TeaVMTestRunner.java @@ -111,7 +111,9 @@ public class TeaVMTestRunner extends Runner implements Filterable { for (var platform : platforms) { var runStrategy = platform.createRunStrategy(outputDir); - runners.put(platform.getPlatform(), runStrategy); + if (runStrategy != null) { + runners.put(platform.getPlatform(), runStrategy); + } } for (var strategy : runners.values()) {