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:
5938cd0
)
b/2519327 Added check for null cursor
author
Erik
<roboerik@android.com>
Wed, 17 Mar 2010 00:19:37 +0000
(17:19 -0700)
committer
Erik
<roboerik@android.com>
Wed, 17 Mar 2010 00:32:00 +0000
(17:32 -0700)
Monkey was causing a query to be canceled which returned a null cursor.
Change-Id: I42941cfa42245800c9a9e7463a1509daa98c3239
src/com/android/calendar/EditEvent.java
patch
|
blob
|
history
diff --git
a/src/com/android/calendar/EditEvent.java
b/src/com/android/calendar/EditEvent.java
index
2fb2d9b
..
9657224
100644
(file)
--- a/
src/com/android/calendar/EditEvent.java
+++ b/
src/com/android/calendar/EditEvent.java
@@
-503,6
+503,11
@@
public class EditEvent extends Activity implements View.OnClickListener,
@Override
protected void onQueryComplete(int token, Object cookie, Cursor cursor) {
+ // If the query didn't return a cursor for some reason return
+ if (cursor == null) {
+ return;
+ }
+
// If the Activity is finishing, then close the cursor.
// Otherwise, use the new cursor in the adapter.
if (isFinishing()) {