Null Pointer Exception on using getSerializableExtra
I am using the same Activity to create and edit an Invoice. On using SetonClicklistener to create an Invoice I am just calling an intent. Whereas when I am trying to edit an existing invoice, I pass along the object using putExtra. The issue is the Activity does not launch when I click the fab button to create a new Invoice. I get a null pointer error... have spent a fair bit of time running in cicles on this... any thoughts?
class EditInvoice : AppCompatActivity() {
companion object {...