sebastienros / shortcodes

Shortcodes processor for .NET
MIT License
70 stars 10 forks source link

Null check input #11

Closed deanmarcussen closed 4 years ago

deanmarcussen commented 4 years ago

If an empty or null string is passed to the ShortcodesProcessor a null reference exception is thrown.

This could be checked at the caller, but seems to make sense to null / empty check in the ShortcodesProcessor, and return the null or empty value.

Related to https://github.com/OrchardCMS/OrchardCore/issues/6686