This is my code:
RuleFor(x => x.Content).NotEmpty().Must(content => content.Trim().Length > 0);
I expect it should behave as
if (NotEmpty(x.Content) && x.Content.Trim().Length > 0)
statement but it throws NullReferenceException if x.Content is null.
Please help me with a workaround.
 
     
    