Daniel Demesmaecker wrote:The nullpointer seems to apear because, as knute suggested, you have a capital M on your memberId, but if my memory serves me correctly the table should still be filled, not specifying the correct propertyValueFactory would cause the column to be empty not failling to fill overal. Why do you first set your tableItems to null? By the way you don't need to specify the ObjectClass and variableType in your propetyValueFactory since you already have done while declaring you tableView and columns. Are your sure you're using the correct name of the table and columns as the id in your fxml? fx:id="yourColumnName".
Also you don't need the event, in your fxml add onAction="#yourMethod" to your buttonTag
Okay, so I have been toiling with this and I am still getting that null pointer exception. I changed all of my names to match naming convention, so eveything is camel cased. I also removed the object class and variable type from the propertyValueFactory (thanks btw). I set the value to null thinking it would prevent the table from populating on startup, but I was way off. The names for my fxml were in caps which I changed to camel case to match the rest.
Daniel Demesmaecker wrote:I think it has to do with the try in your loaddataMethod. Create a getObservableList method and seperate the part where you get and loop the resultset to create the obsevableList from your fxmlmethod...
Hmm... Okay let me try this and see where I end up. Thank you.