diff --git a/src/AngleSharp.Css/Dom/Internal/CssStyleDeclaration.cs b/src/AngleSharp.Css/Dom/Internal/CssStyleDeclaration.cs index 42ecbe4..11f937e 100644 --- a/src/AngleSharp.Css/Dom/Internal/CssStyleDeclaration.cs +++ b/src/AngleSharp.Css/Dom/Internal/CssStyleDeclaration.cs @@ -377,6 +377,11 @@ private void RemovePropertyByName(String propertyName) private void ChangeDeclarations(IEnumerable decls, Predicate defaultSkip, Func removeExisting) { + if (decls is null) + { + return; + } + var declarations = new List(); foreach (var newdecl in decls)