Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
문제
파일을 불러온 다음 그 파일을 지우거나 옮기면 FileNotFoundException 발생
해결
IOException이 catch되면 onError를 호출하고 error에 파일을 찾을 수 없다는 메세지를 담음
그 후 onError에서는 토스트를 띄우고 selectedPreview를 null로 초기화
selectedPreview는 null이 되어도 null check가 잘 되어 있기 때문에 사진 편집 상태가 자연스럽게 초기화 됨