Am trying to call a custom dialog box but the app crashes on this line:
cd.show()
This is how I'm calling it:
val cd = CustomDialog(this, applicationContext)
cd.show()
This is the error:
java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState
I followed this example and it works in java but fails after converting to kotlin