Environment constructor Null safety

Environment()