-
Notifications
You must be signed in to change notification settings - Fork 0
[FIX/#152] 주소 변환 시 도로명 주소가 null인 문제를 해결합니다. #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
도로명 주소 -> 주소로 변경
개요
변경 사항
예상 코드 리뷰 소요 시간🎯 1 (단순) | ⏱️ ~5분
축하 시
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
data/src/main/java/com/threegap/bitnagil/data/address/model/response/Coord2AddressResponse.kt (1)
21-26:roadAddress필드의 nullable 처리가 필수입니다.API가
road_address: null을 반환할 수 있으며 이슈 #152에서 확인되었습니다. 그러나 23번 라인에서roadAddress가 non-nullable로 선언되어 있어, kotlinx.serialization이 null 값을 역직렬화할 때SerializationException이 발생합니다. 이는toAddress()함수가 실행되기 전에 네트워크 응답 파싱 단계에서 발생합니다.현재
toAddress()함수가address필드를 사용하도록 수정된 것은 좋지만, 이는 null 문제가 있는 필드를 사용하지 않는 우회책일 뿐 근본적인 역직렬화 오류를 막지는 못합니다.다음 diff를 적용하여
roadAddress를 nullable로 변경하세요:@Serializable data class Document( @SerialName("road_address") - val roadAddress: RoadAddress, + val roadAddress: RoadAddress?, @SerialName("address") val address: Address, )
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
data/src/main/java/com/threegap/bitnagil/data/address/model/response/Coord2AddressResponse.kt(1 hunks)
data/src/main/java/com/threegap/bitnagil/data/address/model/response/Coord2AddressResponse.kt
Show resolved
Hide resolved
l5x5l
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
[ PR Content ]
Related issue
Screenshot 📸
Work Description
To Reviewers 📢
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.