Skip to content

Commit

Permalink
Fix NullReferenceException in CssShadowValue
Browse files Browse the repository at this point in the history
  • Loading branch information
meziantou committed Feb 26, 2024
1 parent 102cc32 commit 151244d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AngleSharp.Css/Values/Composites/CssShadowValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ ICssValue ICssValue.Compute(ICssComputeContext context)
var offsetX = _offsetX.Compute(context);
var offsetY = _offsetY.Compute(context);
var blurRadius = _blurRadius.Compute(context);
var spreadRadius = _spreadRadius.Compute(context);
var spreadRadius = _spreadRadius?.Compute(context);
var color = (CssColorValue)((ICssValue)_color).Compute(context);
return new CssShadowValue(_inset, offsetX, offsetY, blurRadius, spreadRadius, color);
}
Expand Down

0 comments on commit 151244d

Please sign in to comment.