Skip to content

Commit 151244d

Browse files
committed
Fix NullReferenceException in CssShadowValue
1 parent 102cc32 commit 151244d

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
@@ -137,7 +137,7 @@ ICssValue ICssValue.Compute(ICssComputeContext context)
137137
var offsetX = _offsetX.Compute(context);
138138
var offsetY = _offsetY.Compute(context);
139139
var blurRadius = _blurRadius.Compute(context);
140-
var spreadRadius = _spreadRadius.Compute(context);
140+
var spreadRadius = _spreadRadius?.Compute(context);
141141
var color = (CssColorValue)((ICssValue)_color).Compute(context);
142142
return new CssShadowValue(_inset, offsetX, offsetY, blurRadius, spreadRadius, color);
143143
}

0 commit comments

Comments
 (0)