[FIX] Bug fixes

This commit is contained in:
Gravita 2021-05-28 21:24:06 +07:00
parent 73c6c48f42
commit 265a872b08

View file

@ -102,8 +102,10 @@ public static Set<String> getFeatures(Class<?> clazz) {
public static void getFeatures(Class<?> clazz, Set<String> list) {
Features features = clazz.getAnnotation(Features.class);
for (Feature feature : features.value()) {
list.add(feature.value());
if (features != null) {
for (Feature feature : features.value()) {
list.add(feature.value());
}
}
Class<?> superClass = clazz.getSuperclass();
if (superClass != null && superClass != Object.class) {