summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-09-29 19:52:23 -0400
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-09-29 19:52:23 -0400
commit8bbba0e35b0dd5191c94b2aa039aa4eae0aecad0 (patch)
tree1d77709a39e088a6c048bf711bad2c39d74df053
parent277a41a771c56727ad7456dad23f964e9e3ed546 (diff)
parentf5722b3f22e016a8f21c628776cd0746ef164c19 (diff)
downloadframeworks_base-8bbba0e35b0dd5191c94b2aa039aa4eae0aecad0.zip
frameworks_base-8bbba0e35b0dd5191c94b2aa039aa4eae0aecad0.tar.gz
frameworks_base-8bbba0e35b0dd5191c94b2aa039aa4eae0aecad0.tar.bz2
Merge change If5722b3f into eclair
* changes: Dont NPE if the thumbnail file cannot be opened.
-rw-r--r--media/java/android/media/MiniThumbFile.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/media/java/android/media/MiniThumbFile.java b/media/java/android/media/MiniThumbFile.java
index 3cc115e..22c6459 100644
--- a/media/java/android/media/MiniThumbFile.java
+++ b/media/java/android/media/MiniThumbFile.java
@@ -119,7 +119,9 @@ public class MiniThumbFile {
// ignore exception
}
}
- mChannel = mMiniThumbFile.getChannel();
+ if (mMiniThumbFile != null) {
+ mChannel = mMiniThumbFile.getChannel();
+ }
}
return mMiniThumbFile;
}