(트러블 슈팅) JSON파일에서 null을 가져올시

예를들어)
profileImageUrl :  null


getString("profileImageUrl")로 가져올 경우

return 값은 "null"로 String 형이 된다.

만약 null객체로 가져오고 싶다면 이 부분을 체크해 주어야 한다.

댓글

이 블로그의 인기 게시물

(Garbage Collection) Old Area의 Concurrent Mark-sweep 알고리즘

(데이터베이스) HAVING절과 WHERE 절의 차이

(Pytorch) DataLoder 클래스