diff --git a/src/main/java/com/waruru/areyouhere/attendance/controller/AttendanceController.java b/src/main/java/com/waruru/areyouhere/attendance/controller/AttendanceController.java index e22a10b..4a1cc3d 100644 --- a/src/main/java/com/waruru/areyouhere/attendance/controller/AttendanceController.java +++ b/src/main/java/com/waruru/areyouhere/attendance/controller/AttendanceController.java @@ -132,6 +132,8 @@ private HttpCookie getAuthCodeCookie(String authCode){ } private void checkAuthCodeCookie(Cookie[] cookies, String authCode){ + if(cookies == null) + return; Optional authCookie = Arrays.stream(cookies) .filter(cookie -> cookie.getName().equals(encodeCookieKey(authCode))) .findFirst();