Fix NPE in hookXposedInstaller()

This commit is contained in:
Wang Han 2020-02-26 11:38:48 +08:00 committed by Jim Wu
parent 941c4f08f0
commit 347ebcdb7f
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@ public class XposedInstallerHooker {
Utils.logD("before reloadXposedProp...");
final String propFieldName = "mXposedProp";
final Object thisObject = param.thisObject;
if (thisObject == null) {
return;
}
if (XposedHelpers.getObjectField(thisObject, propFieldName) != null) {
param.setResult(null);
Utils.logD("reloadXposedProp already done, skip...");