Skip to content

Commit

Permalink
Ensure mUri is not null in Window save (#3279)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin committed Apr 29, 2020
1 parent 6a40b4b commit 135a8ac
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -194,7 +194,9 @@ public void saveState() {
ArrayList<Session> sessions = SessionStore.get().getSortedSessions(false);
state.tabs = sessions.stream()
.map(Session::getSessionState)
.filter(sessionState -> SAVE_BLACKLIST.stream().noneMatch(uri -> sessionState.mUri.startsWith(uri)))
.filter(sessionState -> SAVE_BLACKLIST.stream().noneMatch(uri ->
sessionState.mUri != null && sessionState.mUri.startsWith(uri)
))
.collect(Collectors.toCollection(ArrayList::new));
for (WindowWidget window : mRegularWindows) {
if (window.getSession() != null) {
Expand Down

0 comments on commit 135a8ac

Please sign in to comment.