ResourceProvider constructor Null safety

ResourceProvider()