Android Studio: why does the DatePicker function cause my application to crash?

New to Android Studio and Kotlin and I have been working on my new project. I am trying to create a way for users to enter their date of birth using a date picker, but every time I go to that page after setting the date picker, it crashes.

var age_btn: Button? = null
var age_textview: TextView? = null
var cal = Calendar.getInstance()

override fun onCreate(savedInstanceState: Bundle?) {

    age_textview!!.text = "--/--/----"

    // create an OnDateSetListener
    val dateSetListener = object : DatePickerDialog.OnDateSetListener {
        override fun onDateSet(view: DatePicker, year: Int, monthOfYear: Int,
                               dayOfMonth: Int) {
            cal.set(Calendar.YEAR, year)
            cal.set(Calendar.MONTH, monthOfYear)
            cal.set(Calendar.DAY_OF_MONTH, dayOfMonth)

    // when you click on the button, show DatePickerDialog that is set with OnDateSetListener
    age_btn!!.setOnClickListener(object : View.OnClickListener {
        override fun onClick(view: View) {
                // set DatePickerDialog to point to today's date when it loads up


So here is the onDateSet function

private fun updateDateInView() {
    val myFormat = "MM/dd/yyyy" //mention the format you need
    val sdf = SimpleDateFormat(myFormat, Locale.US)
    age_textview!!.text = sdf.format(cal.getTime())

I do not understand why the page is blocked, any link to the work date selectors would also be appreciated.