am e48569a8: Merge "Guard against null Context in attachInfo()." into klp-dev
* commit 'e48569a87057e46a30d3dcbb2d788a4e4da7f21c': Guard against null Context in attachInfo().
This commit is contained in:
@@ -1573,8 +1573,10 @@ public abstract class ContentProvider implements ComponentCallbacks2 {
|
||||
*/
|
||||
if (mContext == null) {
|
||||
mContext = context;
|
||||
mTransport.mAppOpsManager = (AppOpsManager) mContext.getSystemService(
|
||||
Context.APP_OPS_SERVICE);
|
||||
if (context != null) {
|
||||
mTransport.mAppOpsManager = (AppOpsManager) context.getSystemService(
|
||||
Context.APP_OPS_SERVICE);
|
||||
}
|
||||
mMyUid = Process.myUid();
|
||||
if (info != null) {
|
||||
setReadPermission(info.readPermission);
|
||||
|
||||
Reference in New Issue
Block a user