Prevent system server crash while start activity failed.
am: 380626cf54
Change-Id: If5e3f1b6d178e84017d367666a8dbcee7bb4e5bf
This commit is contained in:
@@ -415,7 +415,7 @@ public class ActivityStackSupervisor implements RecentTasks.Callbacks {
|
|||||||
|
|
||||||
void sendErrorResult(String message) {
|
void sendErrorResult(String message) {
|
||||||
try {
|
try {
|
||||||
if (callerApp.hasThread()) {
|
if (callerApp != null && callerApp.hasThread()) {
|
||||||
callerApp.getThread().scheduleCrash(message);
|
callerApp.getThread().scheduleCrash(message);
|
||||||
}
|
}
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user