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

이슈 수정시 버그 해결 #83

Closed
minsang-alt opened this issue May 3, 2024 · 1 comment · Fixed by #84
Closed

이슈 수정시 버그 해결 #83

minsang-alt opened this issue May 3, 2024 · 1 comment · Fixed by #84
Assignees
Labels
🐞 버그 예기치 않은 문제 또는 의도하지 않은 동작에 대한 이슈입니다

Comments

@minsang-alt
Copy link
Contributor

🐞 Describe

상위 에픽이 null이면 반환을 해줘야 하는데 getStories로 접근하면서 NullPointerException 발생

    public void updateStory(IssueEditRequest request, Member assignee, Epic upEpic) {
        super.updateIssue(request, assignee);
        this.startDate = request.getStartDate();
        this.endDate = request.getEndDate();

        if (this.epic != null) {
            this.epic.getStories().remove(this);
        }
        //TODO: upEpic이 null이면 에러 발생
        this.epic = upEpic;
        upEpic.getStories().add(this);
    }

📄 Logs

No response

🌏 Environment

OS: macOS

🙋🏻 More

No response

@minsang-alt minsang-alt added the 🐞 버그 예기치 않은 문제 또는 의도하지 않은 동작에 대한 이슈입니다 label May 3, 2024
@minsang-alt minsang-alt self-assigned this May 3, 2024
@minsang-alt
Copy link
Contributor Author

#79 도 같이 진행

minsang-alt added a commit that referenced this issue May 3, 2024
* bug: upStory, upEpic 없을때 조회하면서 생기는 null 익셉션 해결

* refactor: assignee dto에 kakao image url 추가

* refactor: issue의 member_id를 assignee_id로 칼럼명 변경

* refactor: 스키마 수정(issue 칼럼명 변경)

* refactor: 스키마 수정(issue 칼럼명 변경)

* refactor: 칼럼명 복구
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 a pull request may close this issue.

1 participant