summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));