From 265a872b08894d4d93bc3f05f8fe0829a2c2885d Mon Sep 17 00:00:00 2001 From: Gravita Date: Fri, 28 May 2021 21:24:06 +0700 Subject: [PATCH] [FIX] Bug fixes --- .../java/pro/gravit/launchserver/auth/AuthProviderPair.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) {