diff options
Diffstat (limited to 'src/GraphicObjects')
| -rw-r--r-- | src/GraphicObjects/TemplatedControl.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs index d3feb1d2..b04fe204 100644 --- a/src/GraphicObjects/TemplatedControl.cs +++ b/src/GraphicObjects/TemplatedControl.cs @@ -154,7 +154,8 @@ namespace Crow itemTemplates = new Dictionary<string, ItemTemplate> (); //TODO:check encoding itemTemplates[dataType] = new ItemTemplate (Encoding.UTF8.GetBytes(itemTmp)); - itemTemplates [dataType].CreateExpandDelegate(dataType, datas); + if (!string.IsNullOrEmpty (datas)) + itemTemplates [dataType].CreateExpandDelegate(dataType, datas); continue; } |