지도 api 문의합니다

지도 api 소스 코드 입니다. 코틀린으로 코딩했습니다.

val mapView: MapView? = null
                                        mapView?.setDaumMapApiKey("api")
                                        var mapViewContainer = binding.cafeMapLayout

                                        var mapPoint = MapPoint.mapPointWithGeoCoord(addrx.toDouble(),addry.toDouble())
                                        mapView?.setMapCenterPoint(mapPoint,true)
                                        mapViewContainer.addView(mapView)

                                        marker.itemName = nm
                                        marker.mapPoint = mapPoint
                                        marker.tag = 0
                                        marker.markerType = MapPOIItem.MarkerType.BluePin
                                        marker.selectedMarkerType = MapPOIItem.MarkerType.RedPin
                                        mapView?.addPOIItem(marker)

error ===== Cannot add a null child view to a ViewGroup

mapview에 연결하려는데 위와 같은 오류가 뜹니다.위젯 연결은 데이터 바인딩사용했습니다. 어떻게 해야하나요??