OSDN Git Service
(root)
/
android-x86
/
packages-apps-Calendar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7278388
)
b/2496984 Added check for invalid attendee when saving response
author
Erik
<roboerik@android.com>
Wed, 10 Mar 2010 23:37:11 +0000
(15:37 -0800)
committer
Erik
<roboerik@android.com>
Wed, 10 Mar 2010 23:37:11 +0000
(15:37 -0800)
Monkey was managing to save without a valid ownerAccount being found
which caused an attendee id of -1 to be passed in. Added a check to
protect against this.
Change-Id: I9e55768965594dd43e0cf488852acf928ff09dce
src/com/android/calendar/EventInfoActivity.java
patch
|
blob
|
history
diff --git
a/src/com/android/calendar/EventInfoActivity.java
b/src/com/android/calendar/EventInfoActivity.java
index
aa34a7f
..
59eeab6
100644
(file)
--- a/
src/com/android/calendar/EventInfoActivity.java
+++ b/
src/com/android/calendar/EventInfoActivity.java
@@
-676,6
+676,11
@@
public class EventInfoActivity extends Activity implements View.OnClickListener,
return false;
}
+ // If we never got an owner attendee id we can't set the status
+ if(mCalendarOwnerAttendeeId == -1) {
+ return false;
+ }
+
if (!mIsRepeating) {
// This is a non-repeating event
updateResponse(cr, mEventId, mCalendarOwnerAttendeeId, status);