am b102fb8e: Merge "Fix media scan NPE"
* commit 'b102fb8ed5acdfa5f47e60b7d9fef7b5d74bd9fd': Fix media scan NPE
This commit is contained in:
@@ -958,7 +958,9 @@ public class MediaScanner
|
||||
// If the rowId of the inserted file is needed, it gets inserted immediately,
|
||||
// bypassing the bulk inserter.
|
||||
if (inserter == null || needToSetSettings) {
|
||||
inserter.flushAll();
|
||||
if (inserter != null) {
|
||||
inserter.flushAll();
|
||||
}
|
||||
result = mMediaProvider.insert(tableUri, values);
|
||||
} else if (entry.mFormat == MtpConstants.FORMAT_ASSOCIATION) {
|
||||
inserter.insertwithPriority(tableUri, values);
|
||||
|
||||
Reference in New Issue
Block a user