Provider does not return null but throws OutOfScopeException