Fix for issue #7763, bug 2. (#7764)

Avoided NullReferenceException in case of null value.
This commit is contained in:
GiuseppeMusso-Laser
2017-07-27 21:23:26 +02:00
committed by Sébastien Ros
parent eff20785aa
commit bb4116dbb9

View File

@@ -32,7 +32,7 @@ namespace Orchard.Tokens.Providers {
// {Text}
.Token(
token => token == String.Empty ? String.Empty : null,
(token, d) => d.ToString())
(token, d) => d)
// {Text.Limit:<length>[,<ellipsis>]}
.Token(
token => FilterTokenParam("Limit:", token),