Skip to content
This repository was archived by the owner on Apr 4, 2026. It is now read-only.

Commit 0a73902

Browse files
committed
fix: club NPE
1 parent 8c65c18 commit 0a73902

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
package b1nd.dodam.restapi.member.application.data.req;
22

3-
public record UpdateStudentInfoReq(Integer grade, Integer room, Integer number) {}
3+
import jakarta.validation.constraints.NotNull;
4+
5+
public record UpdateStudentInfoReq(
6+
@NotNull Integer grade,
7+
@NotNull Integer room,
8+
@NotNull Integer number
9+
) {}

dodam-application/dodam-rest-api/src/main/java/b1nd/dodam/restapi/member/presentation/MemberController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public Response updateMemberInfo(@RequestBody @Valid UpdateMemberInfoReq req) {
113113
}
114114

115115
@PatchMapping("/student/info")
116-
public Response updateStudentInfo(@RequestBody UpdateStudentInfoReq req) {
116+
public Response updateStudentInfo(@RequestBody @Valid UpdateStudentInfoReq req) {
117117
return commandUseCase.updateStudentInfo(req);
118118
}
119119

0 commit comments

Comments
 (0)