two System.out is null
this is fieldGroup and datasource
It should be considered that getItem() returns a value only after screen is initialized with setItem() method. Until this moment, this method returns null, for instance when calling from inside init() or initNewItem().
See getItem method
Move your code to the postInit method.