Commit 3eee799
Zhang Wenhao
<fix>[kvm]: fix NPE in VmHostFileTracker sync
When all getLastSyncDate() values in the stream are null, the
min() operation with Comparator.nullsFirst() throws NPE
because Optional.of() doesn't accept null. Filter null values
before calling min() to avoid this issue.
Resolves: ZSV-11779
Related: ZSV-11310
Change-Id: I646a65776a717465636e75616c707467637278621 parent 61d98c2 commit 3eee799
1 file changed
Lines changed: 2 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
| 272 | + | |
| 273 | + | |
273 | 274 | | |
274 | 275 | | |
275 | 276 | | |
| |||
0 commit comments