fixed null pointer issue in assign collection to a class API