mozilla-services/android-sync — comment on commit a24a4ccb26214f02ea4d911ec638ebf5d32f448e
File: src/main/java/org/mozilla/gecko/sync/repositories/android/FennecTabsRepository.java line 65
By rnewman:

Oh, I see what you're asking.

If the first `getContentProvider` fails, it'll throw a `NoContentProviderException`, and the constructor will fail.

If the first succeeds and the second fails, we want to catch it so that we can release the first, then we rethrow the exception. That's why only the second call is in a `try` block.