Merge "Fixed mUserId_shouldDeriveUidFromMainCaller test case fail"

This commit is contained in:
Sunny Shao
2022-12-24 14:03:57 +00:00
committed by Android (Google) Code Review

View File

@@ -43,7 +43,11 @@ public class SettingsApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
ElapsedTimeUtils.assignSuwFinishedTimeStamp(this.getApplicationContext());
// Add null checking to avoid test case failed.
if (getApplicationContext() != null) {
ElapsedTimeUtils.assignSuwFinishedTimeStamp(getApplicationContext());
}
// Set Spa environment.
setSpaEnvironment();