Skip to content

Commit ff33ad7

Browse files
authored
Merge pull request #164 from meziantou/fix-nre-CssShadowValue
Fix NullReferenceException in CssShadowValue
2 parents 1d40f1c + 151244d commit ff33ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AngleSharp.Css/Values/Composites/CssShadowValue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ ICssValue ICssValue.Compute(ICssComputeContext context)
143143
var offsetX = _offsetX.Compute(context);
144144
var offsetY = _offsetY.Compute(context);
145145
var blurRadius = _blurRadius.Compute(context);
146-
var spreadRadius = _spreadRadius.Compute(context);
146+
var spreadRadius = _spreadRadius?.Compute(context);
147147
var color = (CssColorValue)((ICssValue)_color).Compute(context);
148148
return new CssShadowValue(_inset, offsetX, offsetY, blurRadius, spreadRadius, color);
149149
}

0 commit comments

Comments
 (0)