From 830a4466eb79b0a247dab7db33257599114154bb Mon Sep 17 00:00:00 2001 From: "Simon (Darkside) Jackson" Date: Wed, 23 Jun 2021 13:23:13 +0100 Subject: [PATCH] Patch fix for UILineRenderer --- Runtime/Scripts/Primitives/UILineRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Scripts/Primitives/UILineRenderer.cs b/Runtime/Scripts/Primitives/UILineRenderer.cs index 804e3a2..590bdba 100644 --- a/Runtime/Scripts/Primitives/UILineRenderer.cs +++ b/Runtime/Scripts/Primitives/UILineRenderer.cs @@ -466,7 +466,7 @@ namespace UnityEngine.UI.Extensions protected override void OnEnable() { base.OnEnable(); - if (m_points.Length == 0) + if (m_points?.Length == 0) { m_points = new Vector2[1]; }