FluentEmail icon indicating copy to clipboard operation
FluentEmail copied to clipboard

fix ReplaceRenderer class. Method Parse, NullReferenceException

Open wangengzheng opened this issue 2 years ago • 1 comments

close #355

wangengzheng avatar Dec 28 '22 05:12 wangengzheng

The original intention of the adjustment is that when the model attribute is assumed to be null after release, it is difficult to find obvious errors in the corresponding stack

System.NullReferenceException: Object reference not set to an instance of an object.
   at FluentEmail.Core.Defaults.ReplaceRenderer.Parse[T](String template, T model, Boolean isHtml)
   at FluentEmail.Core.Defaults.ReplaceRenderer.ParseAsync[T](String template, T model, Boolean isHtml)

wangengzheng avatar Dec 28 '22 06:12 wangengzheng