mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-19 06:50:18 +00:00
修复报错 (#293)
This commit is contained in:
@@ -21,7 +21,7 @@ namespace XCharts.Runtime
|
||||
|
||||
public static bool NeedFormat(string content)
|
||||
{
|
||||
return content.IndexOf('{') >= 0;
|
||||
return !string.IsNullOrEmpty(content) && content.IndexOf('{') >= 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user