Fix an NPE

A regression of ag/13066961.

'session' might be null inside the if block.
Use rollback.getStagedSessionId() to get the session ID instead.

Bug: 181087240
Test: manual test
Change-Id: Ie8bc2b451e5a1e5fd6fececccda7a3622c33a235
This commit is contained in:
JW Wang
2021-03-30 11:25:22 +08:00
parent a8e90c7cbc
commit 02913eb3d4

View File

@@ -615,7 +615,7 @@ class RollbackManagerServiceImpl extends IRollbackManager.Stub implements Rollba
if (session == null || session.isStagedSessionFailed()) {
iter.remove();
deleteRollback(rollback,
"Session " + session.getSessionId() + " not existed or failed");
"Session " + rollback.getStagedSessionId() + " not existed or failed");
continue;
}