summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-11-01 14:22:16 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-11-01 14:22:16 -0700
commit547f2eb2efe3f161bfd1ad7b44ad14ab23acf274 (patch)
tree6ddf14f3252bcdc420abb6ebe84fe18d398797e3
parent9acb00ee1f2fd8cb190af290a6fe12e01e0d99c1 (diff)
parent6c97009c9fe8ea610717afb93ca2fafaff0bc261 (diff)
am 6c97009c: am b911519f: am 16016d95: Add null check in SmartDialCursorLoader.releaseResources
* commit '6c97009c9fe8ea610717afb93ca2fafaff0bc261': Add null check in SmartDialCursorLoader.releaseResources
-rw-r--r--src/com/android/dialer/dialpad/SmartDialCursorLoader.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/dialer/dialpad/SmartDialCursorLoader.java b/src/com/android/dialer/dialpad/SmartDialCursorLoader.java
index a13ecd8da..369079618 100644
--- a/src/com/android/dialer/dialpad/SmartDialCursorLoader.java
+++ b/src/com/android/dialer/dialpad/SmartDialCursorLoader.java
@@ -162,6 +162,8 @@ public class SmartDialCursorLoader extends AsyncTaskLoader<Cursor> {
}
private void releaseResources(Cursor cursor) {
- cursor.close();
+ if (cursor != null) {
+ cursor.close();
+ }
}
}