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

Fix crash when file is not found #16

Merged
merged 1 commit into from
Dec 15, 2019
Merged

Conversation

5seunghoon
Copy link
Owner

문제

파일을 불러온 다음 그 파일을 지우거나 옮기면 FileNotFoundException 발생

해결

IOException이 catch되면 onError를 호출하고 error에 파일을 찾을 수 없다는 메세지를 담음
그 후 onError에서는 토스트를 띄우고 selectedPreview를 null로 초기화
selectedPreview는 null이 되어도 null check가 잘 되어 있기 때문에 사진 편집 상태가 자연스럽게 초기화 됨

@5seunghoon 5seunghoon merged commit a4ad8ee into master Dec 15, 2019
@5seunghoon 5seunghoon deleted the bugfix/crash_file_not_found branch December 15, 2019 11:06
@5seunghoon 5seunghoon mentioned this pull request Dec 15, 2019
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant