mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 22:03:55 +01:00
Fixes NPE in Util function
This commit is contained in:
parent
c0ff9ed09c
commit
8dd8e09f2a
4 changed files with 13 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue