修复报错 (#293)

This commit is contained in:
monitor1394
2023-11-25 21:57:49 +08:00
parent cdc182191b
commit 7ea260b986

View File

@@ -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>