Merge "Check mMediaProvider for null" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cefe0c6518
@@ -292,7 +292,9 @@ public class MtpDatabase implements AutoCloseable {
|
||||
mCloseGuard.close();
|
||||
if (mClosed.compareAndSet(false, true)) {
|
||||
mMediaScanner.close();
|
||||
mMediaProvider.close();
|
||||
if (mMediaProvider != null) {
|
||||
mMediaProvider.close();
|
||||
}
|
||||
native_finalize();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user