mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-26 18:35:43 +00:00
Filter invalid history state
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user