mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add check for moveToFirst()
This commit is contained in:
parent
20f7140280
commit
6ea7367bf3
1 changed files with 6 additions and 2 deletions
|
|
@ -99,9 +99,13 @@ public class ModificationsSyncAdapter extends AbstractThreadedSyncAdapter {
|
|||
} catch (RemoteException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
contributionCursor.moveToFirst();
|
||||
contrib = contributionDao.fromCursor(contributionCursor);
|
||||
|
||||
if (contributionCursor != null) {
|
||||
contributionCursor.moveToFirst();
|
||||
}
|
||||
|
||||
contrib = contributionDao.fromCursor(contributionCursor);
|
||||
|
||||
if (contrib.getState() == Contribution.STATE_COMPLETED) {
|
||||
String pageContent;
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue