[fix][comment] fix null error for comment

This commit is contained in:
monitor1394
2022-11-12 08:19:51 +08:00
parent 6d287f6678
commit 26ef85ce6f

View File

@@ -59,7 +59,7 @@ namespace XCharts.Runtime
{
var item = component.items[i];
var markStyle = component.GetMarkStyle(i);
if (!markStyle.show) continue;
if (markStyle == null || !markStyle.show) continue;
var color = ChartHelper.IsClearColor(markStyle.lineStyle.color) ?
chart.theme.axis.splitLineColor :
markStyle.lineStyle.color;