possible NullPointer in MasterDetail