mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-25 10:59:18 +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}
|
// {Text}
|
||||||
.Token(
|
.Token(
|
||||||
token => token == String.Empty ? String.Empty : null,
|
token => token == String.Empty ? String.Empty : null,
|
||||||
(token, d) => d.ToString())
|
(token, d) => d)
|
||||||
// {Text.Limit:<length>[,<ellipsis>]}
|
// {Text.Limit:<length>[,<ellipsis>]}
|
||||||
.Token(
|
.Token(
|
||||||
token => FilterTokenParam("Limit:", token),
|
token => FilterTokenParam("Limit:", token),
|
||||||
|
|||||||
Reference in New Issue
Block a user