am 474b0f29: Merge change 7686 into donut
Merge commit '474b0f2941430b97b4f24f16f7173e5249ccc8f2' * commit '474b0f2941430b97b4f24f16f7173e5249ccc8f2': MediaScanner: Add check for null object in empty title handling code.
This commit is contained in:
committed by
Android Git Automerger
commit
ab6ee15f8c
@@ -663,7 +663,7 @@ public class MediaScanner
|
||||
|
||||
ContentValues values = toValues();
|
||||
String title = values.getAsString(MediaStore.MediaColumns.TITLE);
|
||||
if (TextUtils.isEmpty(title.trim())) {
|
||||
if (title == null || TextUtils.isEmpty(title.trim())) {
|
||||
title = values.getAsString(MediaStore.MediaColumns.DATA);
|
||||
// extract file name after last slash
|
||||
int lastSlash = title.lastIndexOf('/');
|
||||
|
||||
Reference in New Issue
Block a user