We were testing some template rendering and were getting a NullReferenceException when this code is executing. I believe one of the model properties is null. I would think ReplaceRenderer should ether skip null properties or throw a custom exception representing this error.
We were testing some template rendering and were getting a NullReferenceException when this code is executing. I believe one of the model properties is null. I would think ReplaceRenderer should ether skip null properties or throw a custom exception representing this error.
https://github.com/lukencode/FluentEmail/blob/a94b1f3d084476dfeaeedd1845cdecd2b6718dbc/src/FluentEmail.Core/Defaults/ReplaceRenderer.cs#L13
The problem is this part
pi.GetValue(model, null).ToString()
when the property is null. The ToString() function call causes the exception.