... and previous commit would not have compiled. Back at it

pull/14/head
Tim Su 16 years ago
parent a8173dc7ea
commit f32010bfeb

@ -284,9 +284,11 @@ public abstract class SynchronizationProvider {
// 3. UPDATE: for each updated local task // 3. UPDATE: for each updated local task
for(SyncMapping mapping : data.localChanges) { for(SyncMapping mapping : data.localChanges) {
TaskProxy localTask = null;
TaskModelForSync task = null;
try { try {
TaskProxy localTask = new TaskProxy(getId(), mapping.getRemoteId()); localTask = new TaskProxy(getId(), mapping.getRemoteId());
TaskModelForSync task = taskController.fetchTaskForSync( task = taskController.fetchTaskForSync(
mapping.getTask()); mapping.getTask());
if(task == null) { if(task == null) {
// sucks... task was deleted i guess. // sucks... task was deleted i guess.
@ -300,10 +302,16 @@ public abstract class SynchronizationProvider {
} catch (Exception e) { } catch (Exception e) {
AstridUtilities.reportFlurryError("sync-read-local-task", e); AstridUtilities.reportFlurryError("sync-read-local-task", e);
Log.e("astrid", "Exception receiving task", e); Log.e("astrid", "Exception receiving task", e);
if(task != null)
log.append("error reading '" + task.getName() + "'\n");
else
log.append("error reading local task\n"); log.append("error reading local task\n");
}
continue;
} finally {
postUpdate(new ProgressUpdater(stats.remoteUpdatedTasks, postUpdate(new ProgressUpdater(stats.remoteUpdatedTasks,
data.localChanges.size())); data.localChanges.size()));
}
// if there is a conflict, merge // if there is a conflict, merge
TaskProxy remoteConflict = null; TaskProxy remoteConflict = null;

Loading…
Cancel
Save