From 652dd1a6464fe037430c85f8b18746606bc37a40 Mon Sep 17 00:00:00 2001 From: Simon Jackson Date: Sun, 7 May 2017 18:39:53 +0100 Subject: [PATCH] Patch to BezierLineRendererEditor for Null --- Editor/BezierLineRendererEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/BezierLineRendererEditor.cs b/Editor/BezierLineRendererEditor.cs index d3ab130..7689f3d 100644 --- a/Editor/BezierLineRendererEditor.cs +++ b/Editor/BezierLineRendererEditor.cs @@ -12,7 +12,7 @@ namespace UnityEngine.UI.Extensions { UILineRenderer curveRenderer = target as UILineRenderer; - if (!curveRenderer && curveRenderer.Points.Length < 2) + if (!curveRenderer || curveRenderer.Points == null || curveRenderer.Points.Length < 2) { return; }