Check null (#1356)

This commit is contained in:
LoveSy 2021-11-03 14:56:24 +08:00 committed by GitHub
parent 5589ecd29f
commit 663c7ec762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class ParasiticManagerHooker {
private static int managerFd = -1; private static int managerFd = -1;
private synchronized static PackageInfo getManagerPkgInfo(ApplicationInfo appInfo) { private synchronized static PackageInfo getManagerPkgInfo(ApplicationInfo appInfo) {
if (managerPkgInfo == null) { if (managerPkgInfo == null && appInfo != null) {
try { try {
Context ctx = ActivityThread.currentActivityThread().getSystemContext(); Context ctx = ActivityThread.currentActivityThread().getSystemContext();
var sourceDir = "/proc/self/fd/" + managerFd; var sourceDir = "/proc/self/fd/" + managerFd;