mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-25 02:44:56 +08:00
Avoided NullReferenceException in case of null value.
This commit is contained in:
committed by
Sébastien Ros
parent
eff20785aa
commit
bb4116dbb9
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user