Patch fix for UILineRenderer

pull/413/head
Simon (Darkside) Jackson 2021-06-23 13:23:13 +01:00
parent dff07c6952
commit 830a4466eb
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ namespace UnityEngine.UI.Extensions
protected override void OnEnable() protected override void OnEnable()
{ {
base.OnEnable(); base.OnEnable();
if (m_points.Length == 0) if (m_points?.Length == 0)
{ {
m_points = new Vector2[1]; m_points = new Vector2[1];
} }