Fix bug in TestNG annotation support

This commit is contained in:
Alexey Andreev 2021-03-16 22:32:47 +03:00
parent 0a08e5458e
commit 6c75ce7f68

View File

@ -660,7 +660,11 @@ public class TeaVMTestRunner extends Runner implements Filterable {
return runner; 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()) { if (providerName.isEmpty()) {
return runner; return runner;
} }