Hello guys, this is my code :
https://paste.ofcode.org/Vshdj8cq9WbNkt8twuxB8BTill i create my dialog box and show items on the screen there is no problem but when I'm trying to set some of my values into my spinner which comes from local database i get this error :
Attempt to invoke virtual method 'void androidx.appcompat.widget.AppCompatEditText.setText(java.lang.CharSequence)' on a null object reference
it points to my AppCompatEditText is null, i search on stack overflow and tried to do what they've said, didn't help me
this is my top level Activity define : class TicketActivity : AppCompatActivity(),AdapterView.OnItemSelectedListener, any suggestion (i may miss something to explain more, i'm new to kotlin)