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:
cfdc6c7
)
b/2336411 Added check to ensure cursor is not empty.
author
Erik
<roboerik@android.com>
Tue, 2 Mar 2010 00:46:54 +0000
(16:46 -0800)
committer
Erik
<roboerik@android.com>
Tue, 2 Mar 2010 00:46:54 +0000
(16:46 -0800)
Looks like monkey was cancelling before an event could be loaded causing an empty cursor
to be returned. Added a check to guard against this.
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
c1882b6
..
37b9a05
100644
(file)
--- a/
src/com/android/calendar/EventInfoActivity.java
+++ b/
src/com/android/calendar/EventInfoActivity.java
@@
-709,9
+709,12
@@
public class EventInfoActivity extends Activity implements View.OnClickListener,
if (cursor == null) {
return;
}
+ if(!cursor.moveToFirst()) {
+ cursor.close();
+ return;
+ }
try {
- cursor.moveToFirst();
ContentValues values = new ContentValues();
String title = cursor.getString(EVENT_INDEX_TITLE);