Merged
Conversation
ZaMan-O
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
서버 DTO 분석을 통해 실제로
null이 반환될 수 있는 필드들을 파악하고, 해당 getter에 JavaOptionalAPI를 적용하였습니다.SDK 사용자가 NPE 없이 안전하게 nullable 필드를 처리할 수 있도록 개선합니다.
Changes
ClubDetail.getLeader()→Optional<ParticipantInfo>반환으로 변경 (서버 PR #220 대응)ParticipantInfo.getStudentNumber(),getMajor()→Optional적용Meal.getMealAllergyInfo(),getMealCalories(),getOriginInfo(),getNutritionInfo(),getMealServeCount()→Optional적용Schedule.getEventContent(),getDayCategory(),getSchoolCourseType(),getDayNightType()→Optional적용Student.getGrade(),getClassNum(),getNumber(),getStudentNumber(),getMajor(),getDormitoryFloor(),getDormitoryRoom(),getMajorClub(),getJobClub(),getAutonomousClub()→Optional적용Project.getClub()→Optional<Club>적용Type of Change
Checklist
코드가 정상적으로 빌드됩니다
관련 테스트를 추가하거나 업데이트했습니다
문서를 업데이트했습니다 (필요한 경우)
Breaking change가 있다면 마이그레이션 가이드를 작성했습니다
마이그레이션: getter 반환 타입이
Optional<T>로 변경되었으므로, 기존에 직접 반환값을 사용하던 코드는.orElse(),.ifPresent()등으로 수정이 필요합니다.Related Issues
null처리 문제 개선 datagsm-server#220