test fix: NPE

This commit is contained in:
Ilya.Kazakevich
2018-03-27 01:49:33 +03:00
parent 2126cbc229
commit f54bb4fe35
+3 -1
View File
@@ -248,7 +248,9 @@ public abstract class PyEnvTestCase {
catch (final NoSuchMethodException e) {
throw new AssertionError("No such method", e);
}
Assume.assumeFalse("Test skipped on this os", Arrays.stream(classAnnotation.skipOnOSes()).anyMatch(TestEnv::isThisOs));
if (classAnnotation != null) {
Assume.assumeFalse("Test skipped on this os", Arrays.stream(classAnnotation.skipOnOSes()).anyMatch(TestEnv::isThisOs));
}
final String[] classTags = getTags(classAnnotation);
final String[] methodTags = getTags(methodAnnotation);