Filter invalid history state

This commit is contained in:
crschnick
2025-04-27 13:32:46 +00:00
parent c60894bf5d
commit f084716259
@@ -82,7 +82,8 @@ public class BrowserHistorySavedStateImpl implements BrowserHistorySavedState {
if (ls == null) {
ls = List.of();
}
return new BrowserHistorySavedStateImpl(ls);
var valid = ls.stream().filter(entry -> entry.getUuid() != null && entry.getPath() != null).toList();
return new BrowserHistorySavedStateImpl(valid);
}
}
}