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 8eba20ab4..2e5f99acd 100644 --- a/tools/junit/src/main/java/org/teavm/junit/TeaVMTestRunner.java +++ b/tools/junit/src/main/java/org/teavm/junit/TeaVMTestRunner.java @@ -660,7 +660,11 @@ public class TeaVMTestRunner extends Runner implements Filterable { return runner; } - String providerName = annot.getValue("dataProvider").getString(); + AnnotationValue dataProviderValue = annot.getValue("dataProvider"); + if (dataProviderValue == null) { + return runner; + } + String providerName = dataProviderValue.getString(); if (providerName.isEmpty()) { return runner; }