Fixes NPE in Util function

This commit is contained in:
maskara 2017-11-14 00:44:02 +05:30
parent c0ff9ed09c
commit 8dd8e09f2a
4 changed files with 13 additions and 2 deletions

View file

@ -47,6 +47,9 @@ public class ContributionsSyncAdapter extends AbstractThreadedSyncAdapter {
}
private boolean fileExists(ContentProviderClient client, String filename) {
if (filename == null) {
return false;
}
Cursor cursor = null;
try {
cursor = client.query(BASE_URI,