Skip to content

Commit

Permalink
Added missing null check .netstandard2
Browse files Browse the repository at this point in the history
  • Loading branch information
EdCharbeneau committed Mar 5, 2021
1 parent a46bbe0 commit ad26404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BlazorSize/Resize/ResizeListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class ResizeListener : IDisposable, IResizeListener

public ResizeListener(IJSRuntime jsRuntime, IOptions<ResizeOptions> options = null)
{
this.options = options.Value ?? new ResizeOptions();
this.options = options?.Value ?? new ResizeOptions();
this.jsRuntime = jsRuntime;
}

Expand Down

0 comments on commit ad26404

Please sign in to comment.