summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRockchip2014-12-17 21:17:30 +0800
committerRockchip2014-12-17 21:17:30 +0800
commitc52ab307952622f885ffc34d06aa20a24e8ff411 (patch)
tree2f5571e0fc01a40bb2b544c4a1080edac09e26be
parent661a37d58021709076514e373bb6a6953a762d27 (diff)
fix NULL pointer for rk312x
-rw-r--r--src/com/android/camera/CameraActivity.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/camera/CameraActivity.java b/src/com/android/camera/CameraActivity.java
index 471c275..0e80489 100644
--- a/src/com/android/camera/CameraActivity.java
+++ b/src/com/android/camera/CameraActivity.java
@@ -1200,6 +1200,11 @@ public class CameraActivity extends Activity
updateStorageSpaceAndHint(null);
ContentResolver cr = getContentResolver();
String mimeType = cr.getType(uri);
+ Log.v(TAG,"===============NULL pointer debug===================");
+ if(mimeType == null) {
+ Log.e(TAG, "Can't find video data in content resolver:" + uri);
+ return;
+ }
LocalData newData = null;
if (LocalDataUtil.isMimeTypeVideo(mimeType)) {
sendBroadcast(new Intent(CameraUtil.ACTION_NEW_VIDEO, uri));