junit: fix crash when test runner is not configured

This commit is contained in:
Alexey Andreev 2023-10-17 10:04:57 +02:00
parent a78eec93d6
commit c6f60ca00e

View File

@ -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()) {