본문 바로가기
android

[Kotlin] apply 안쪽 코드를 못 읽음

by liz_devel 2021. 9. 6.

에러 코드

point?.apply {
type = pointTypeValue.toInt()
point_val = point.toLong()
insert(app.wdb)
}

에러 내용: apply 안 코드를 읽지 못 함

 

해결 방법:

인스턴스를 생성해주지 않아서 생성해주었음

point = Point()

반응형

'android' 카테고리의 다른 글

Context란  (0) 2021.09.21
[Kotlin] DiffUtil  (0) 2021.09.08
[kotlin] setresult 값을 get intent 해오지 못 하는 경우  (0) 2021.08.31
[kotlin] Array 로그 찍는 법  (0) 2021.08.31
안드로이드 빌드가 안 되는 에러 (AAPT)  (0) 2021.08.28