Skip to content

Commit

Permalink
Merge pull request #164 from meziantou/fix-nre-CssShadowValue
Browse files Browse the repository at this point in the history
Fix NullReferenceException in CssShadowValue
  • Loading branch information
FlorianRappl authored Feb 26, 2024
2 parents 1d40f1c + 151244d commit ff33ad7
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 @@ -143,7 +143,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 ff33ad7

Please sign in to comment.