Fixed ui resource provider null pointer exception issue