I use TabModuleSettings for saving, I checked whether they are saved into the Table in the DataBase. The settings are indeed saved.
However, whenever I try to access them with Settings[] or the following code, I'll get a Null Reference
roleName = (string)modController.GetModuleSettings(ModuleId)["rolename"];
detailProperties = (string)modController.GetModuleSettings(ModuleId)["detailproperties"];
displayProperties = (string)modController.GetModuleSettings(ModuleId)["displayproperties"];
When I set the value by hand, ie roleName ="Administrators" my module works, so the error is narrowed down to this.
How can I access my TabModuleSettings?