[Solved] How do I fix NullPointerException and putting data into NatTable

Your problem is that you have nested objects and you want to access them via reflection. That is not working! If your Student would only have one exam, you would need to change the propertyNames to this: String[] propertyNames = { “name”, “groupNumber”, “exam.name”, “exam.mark” }; and the definition of the data provider to this: … Read more