PathElement constructor Null safety

PathElement()