Partial solution to sync failure when adding blank task--delete invalid outstanding entries. Need a solution that won't send the other changes until full message is ready though

pull/14/head
Sam Bosley 12 years ago
parent d31d4c1a4e
commit 504cb473fe

@ -153,8 +153,10 @@ public class ChangesHappened<TYPE extends RemoteModel, OE extends OutstandingEnt
throw new RuntimeException("No server column found for local column " + localColumn + " in table " + table);
Object value = localProperty.accept(visitor, change);
if (!validateValue(localProperty, value))
if (!validateValue(localProperty, value)) {
outstandingDao.delete(change.getId());
return null;
}
if (value == null)
changeJson.put("value", JSONObject.NULL);

Loading…
Cancel
Save