Fix NPE due to null getModule() return value
This commit is contained in:
parent
6763a17314
commit
9f6369cc9e
|
|
@ -118,7 +118,8 @@ public class LSPosedService extends ILSPosedService.Stub {
|
||||||
var allUsers = intent.getBooleanExtra(EXTRA_REMOVED_FOR_ALL_USERS, false);
|
var allUsers = intent.getBooleanExtra(EXTRA_REMOVED_FOR_ALL_USERS, false);
|
||||||
if (userId == USER_NULL) userId = uid % PER_USER_RANGE;
|
if (userId == USER_NULL) userId = uid % PER_USER_RANGE;
|
||||||
Uri uri = intent.getData();
|
Uri uri = intent.getData();
|
||||||
String moduleName = (uri != null) ? uri.getSchemeSpecificPart() : ConfigManager.getInstance().getModule(uid).packageName;
|
var module = ConfigManager.getInstance().getModule(uid);
|
||||||
|
String moduleName = (uri != null) ? uri.getSchemeSpecificPart() : (module != null) ? module.packageName : null;
|
||||||
|
|
||||||
ApplicationInfo applicationInfo = null;
|
ApplicationInfo applicationInfo = null;
|
||||||
if (moduleName != null) {
|
if (moduleName != null) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue