java.lang.IllegalArgumentException: view must not be null
환경 : dialog를 띄워야하는 상황
오류원인 : view가 null 값으로 들어감
해결방안 : view를 명시해준다.
기존코드
LayoutInflater layoutInflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE); layoutInflater.inflate(R.layout.calling_window_pop, null); ButterKnife.bind(this, view); |
수정코드
View view; ... LayoutInflater layoutInflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE); view = layoutInflater.inflate(R.layout.calling_window_pop, null); ButterKnife.bind(this, view); |