I think the problem is accessing the field directly, even with getters/setters the field will be null.