Patch to BezierLineRendererEditor for Null

pull/413/head
Simon Jackson 2017-05-07 18:39:53 +01:00
parent c6f095efeb
commit 652dd1a646
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ namespace UnityEngine.UI.Extensions
{ {
UILineRenderer curveRenderer = target as UILineRenderer; UILineRenderer curveRenderer = target as UILineRenderer;
if (!curveRenderer && curveRenderer.Points.Length < 2) if (!curveRenderer || curveRenderer.Points == null || curveRenderer.Points.Length < 2)
{ {
return; return;
} }