fair enough.
Do you think there should be another exception thrown if getRepository returns null?
The doc for RepositoryMapping.getMapping which essentially constitutes getRepository() says that it returns 'the RepositoryMapping for this resource, or null for non GitProvider.'