* We needed to check that clientId wasn't null before sending it back
  to the server
* Exceptions don't have a clientId

Bug: 2478711
Change-Id: Ic0d42bb699605a7bb77535b050a4d03b4b6b8b09
This commit is contained in:
Marc Blank 2010-03-02 14:37:48 -08:00
parent d05cc9196a
commit 4476b2a1da

View File

@ -1109,9 +1109,11 @@ public class CalendarSyncAdapter extends AbstractSyncAdapter {
}
}
// We've got to send a UID. If the event is new, we've generated one; if not,
// we should have gotten one from extended properties.
s.data(Tags.CALENDAR_UID, clientId);
// We've got to send a UID, unless this is an exception. If the event is new, we've
// generated one; if not, we should have gotten one from extended properties.
if (clientId != null) {
s.data(Tags.CALENDAR_UID, clientId);
}
// Handle attendee data here; keep track of organizer and stream it afterward
String organizerName = null;