My app crashes and restart when trying to use constructor?

  • Replies:0
Kasper Nielsen
  • Forum posts: 1

Mar 14, 2017, 11:51:57 AM via Website

So im trying to make a login database for my app, however when i get to the registrering new elements to the database the app crashes and restarts for some reason. I dont know why but ive found out and marked where the roblem is, hope somone can enlighten me as to what im doing wrong.

Here is the place that im trying to add an object to the database based on some user inputs, this is also were the problem is as it does not crash if i comment it out:
image

Here is the class of a database item which constructor im trying to make:
image

Any tips would be appreciated, cheers! :)

Reply