Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aaded54e authored by Yu-Ting Tseng's avatar Yu-Ting Tseng
Browse files

Check record.getThread!=null in getExecutableMethodFileOffsets

Return IllegalStateException if it is null, indicating that the
ActivityThread of the process is not ready yet.

Bug: 440134516
Test: atest uprobestats-test
Flag: EXEMPT BUGFIX
Change-Id: I1a8ee03c1b24ab39c43c8e46940a6eb043c6989e
parent 86b91736
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -18322,6 +18322,9 @@ public class ActivityManagerService extends IActivityManager.Stub
                }
                thread = record.getThread();
            }
            if (thread == null) {
                throw new IllegalStateException("app ActivityThread is null");
            }
            try {
                thread.getExecutableMethodFileOffsets(methodDescriptor, callback);
            } catch (RemoteException e) {