Skip to content

Commit 4c779e9

Browse files
committed
fix: NPE in session select on stats page
For some reason NRE is not working on this razor page - so the possible null pointer was not caught at compile time. Fixes: #445 NPE
1 parent 4ceb0d8 commit 4c779e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

LiftLog.Ui/Pages/StatsPage.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Options="SessionSelectOptions"
1414
Value="StatsState.Value.OverallViewSessionName"
1515
ValueChanged="HandleSessionSelectChanged"
16-
EqualsComparer="(a,b)=>a.Equals(b)" />
16+
EqualsComparer="(a,b)=>a?.Equals(b) ?? (a is null && b is null)" />
1717
<Select
1818
data-cy="stats-time-selector"
1919
T="TimeSpan"

0 commit comments

Comments
 (0)