Skip to content
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

[BE] fix: 학교 검색 시 발생하는 NPE 수정 (#895) #896

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

seokjin8678
Copy link
Collaborator

📌 관련 이슈

✨ PR 세부 내용

학교 검색 시 발생하는 NPE를 수정했습니다.

원인은 #895 에 적어둔 것 처럼, SchoolTotalSearchV1Response의 정팩메 of()의 파라미터로 들어오는 schoolSearchUpcomingFestivalV1Response 값이 null이라 발생한 문제였습니다.

따라서 기존 Map<Long, SchoolSearchUpcomingFestivalV1Response>를 반환하는 클래스인 SchoolSearchUpcomingFestivalV1QueryServiceMap<Long, LocalDate>를 반환하도록 하였고, 이름도 SchoolUpcomingFestivalStartDateV1QueryService으로 변경했습니다.

해당 클래스는 인터페이스인데, 추후 스프링 캐시가 적용된다면 굳이 인터페이스가 아니어도 될 것 같기도 하네요. 😂

클라이언트에 영향을 받는 문제이므로, 바로 머지 처리 하도록 하겠습니다!

- 학교 식별자 목록으로 최근 축제 시작일 받아오는 클래스 이름 변경
- SchoolSearchUpcomingFestivalV1QueryService -> SchoolUpcomingFestivalStartDateV1QueryService
@seokjin8678 seokjin8678 added BE 백엔드에 관련된 작업 🚨 우선순위上 급하게 처리해야 할 작업 🛠 수정 수정에 관련된 작업 labels Apr 25, 2024
@seokjin8678 seokjin8678 self-assigned this Apr 25, 2024
@seokjin8678 seokjin8678 linked an issue Apr 25, 2024 that may be closed by this pull request
@github-actions github-actions bot requested review from BGuga, carsago and xxeol2 April 25, 2024 10:30
Copy link

Test Results

200 files  200 suites   24s ⏱️
665 tests 665 ✅ 0 💤 0 ❌
678 runs  678 ✅ 0 💤 0 ❌

Results for commit 69170c4.

@seokjin8678 seokjin8678 merged commit 765444d into dev Apr 25, 2024
7 checks passed
@seokjin8678 seokjin8678 deleted the feat/#895 branch April 25, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE 백엔드에 관련된 작업 🚨 우선순위上 급하게 처리해야 할 작업 🛠 수정 수정에 관련된 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BE] 학교 검색 시 발생하는 NPE를 해결한다.
1 participant