Try to fix a NullPointerException
Add a message when the provider can't be retrieved