Skip to content

Conversation

@dh2906
Copy link
Contributor

@dh2906 dh2906 commented Jan 13, 2026

🔍 개요


🚀 주요 변경 내용

  • 상시 모집의 경우 RecruitmentStatusof() 메소드로 상태 판별 시 NPE가 발생하는 문제를 해결했습니다.

💬 참고 사항


✅ Checklist (완료 조건)

  • 코드 스타일 가이드 준수
  • 테스트 코드 포함됨
  • Reviewers / Assignees / Labels 지정 완료
  • 보안 및 민감 정보 검증 (API 키, 환경 변수, 개인정보 등)

@dh2906 dh2906 requested a review from Copilot January 13, 2026 15:04
@dh2906 dh2906 self-assigned this Jan 13, 2026
@dh2906 dh2906 added 기능 새로운 기능을 개발합니다. 버그 정상적으로 동작하지 않는 문제 상황 관련 이슈입니다. and removed 기능 새로운 기능을 개발합니다. labels Jan 13, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a NullPointerException in the RecruitmentStatus.of() method when handling always-recruiting clubs. The issue occurred because the method attempted to use startDate and endDate before checking if the recruitment was always-recruiting or if those fields were null.

Changes:

  • Added early return for always-recruiting clubs before accessing date fields
  • Added null safety checks for startDate and endDate to prevent NPE
  • Extracted date fields to local variables for cleaner code

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dh2906 dh2906 merged commit 3b2af09 into main Jan 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

버그 정상적으로 동작하지 않는 문제 상황 관련 이슈입니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants