Skip to content

fix: OFFER/REQUEST 피드 서포터 중복 수락 방지 및 NPE 수정 #89

@hoTan35

Description

@hoTan35

문제

OFFER/REQUEST 피드에서 작성자가 이미 서포터를 수락했음에도 두 번째 서포터를 수락할 수 있었고, accumulateFunding에서 Integer 필드가 DB에서 null로 로딩돼 500 NPE 발생.

원인

  • 서포터 상한 체크 로직 없음
  • @Builder.Default가 Hibernate 리플렉션 로딩 시 미적용 → null NPE

해결

  • FeedItem.canAcceptMore() 추가 (confirmedPartnerCount >= 1 이면 false)
  • accumulateFunding() null 안전 처리
  • acceptApplication()에서 상한 초과 시 400 반환

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions