Skip to content

When adding a class from the additional attributes parameter, if the class is null, a null reference exception is thrown. #12

@kevinbourassahoule

Description

@kevinbourassahoule

Probably changing the following line from

https://github.com/EdCharbeneau/CssBuilder/blob/0a491e3e7f2fc680e5b9c7167d2e54de572fcb84/BlazorComponentUtilities/CssBuilder.cs#L120

to

 additionalAttributes.TryGetValue("class", out var c) && c != null ? AddClass(c.ToString()) : this; 

would do the trick?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions