Skip to content

NullReferenceException in ValidationLocalizer (Custom non IClonable ValidationAttribute) #35

@levmatta

Description

@levmatta

Just create a Custom ValidationAttribute and don't make it Clonable.

CopyAttribute default result is Null, and GetValidators is:

				foreach (var a in attrs)
				{
					var attr = CopyAttribute(a);

					var text = metadata.PropertyName + "_" + attr.GetType().Name;

NullReferenceException in GetType() above.

(If more info is need I am happy to provide)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions