Skip to content

Commit

Permalink
Fix crash restoring sessions (#1497)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and keianhzo committed Aug 5, 2019
1 parent 2121712 commit b4fe813
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ public void restore(SessionStack store, int currentSessionId) {
state.mSession = new GeckoSession(geckoSettings);
}

state.mSession.restoreState(state.mSessionState);
if (state.mSessionState != null) {
state.mSession.restoreState(state.mSessionState);
}

int newSessionId = state.mSession.hashCode();
oldNewSessionId.put(entry.getKey(), newSessionId);
Expand Down

0 comments on commit b4fe813

Please sign in to comment.