Merge "Don't crash if a system restore fails before constructing the PMBA" into lmp-mr1-dev

This commit is contained in:
Christopher Tate
2014-12-02 00:18:43 +00:00
committed by Android (Google) Code Review

View File

@@ -7664,7 +7664,7 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF
// If this was a full-system restore, record the ancestral
// dataset information
if (mIsSystemRestore) {
if (mIsSystemRestore && mPmAgent != null) {
mAncestralPackages = mPmAgent.getRestoredPackages();
mAncestralToken = mToken;
writeRestoreTokens();