diff --git a/Runtime/Helper/FormatterHelper.cs b/Runtime/Helper/FormatterHelper.cs index 250a8359..893b8857 100644 --- a/Runtime/Helper/FormatterHelper.cs +++ b/Runtime/Helper/FormatterHelper.cs @@ -21,7 +21,7 @@ namespace XCharts.Runtime public static bool NeedFormat(string content) { - return content.IndexOf('{') >= 0; + return !string.IsNullOrEmpty(content) && content.IndexOf('{') >= 0; } ///