Prevent system server crash while start activity failed.

am: 380626cf54

Change-Id: Ia94e84cbfbf3737cd9bd5d78a8c4c131a82a20e6
This commit is contained in:
wilsonshih
2019-07-02 10:30:09 -07:00
committed by android-build-merger

View File

@@ -415,7 +415,7 @@ public class ActivityStackSupervisor implements RecentTasks.Callbacks {
void sendErrorResult(String message) {
try {
if (callerApp.hasThread()) {
if (callerApp != null && callerApp.hasThread()) {
callerApp.getThread().scheduleCrash(message);
}
} catch (RemoteException e) {