diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/AuthProviderPair.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/AuthProviderPair.java index f622b61d..7096991d 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/AuthProviderPair.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/AuthProviderPair.java @@ -102,8 +102,10 @@ public static Set getFeatures(Class clazz) { public static void getFeatures(Class clazz, Set 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) {