fix: GetPosition when Segments is null
parent
d2b10980e3
commit
5e7282c27d
|
@ -419,7 +419,7 @@ namespace UnityEngine.UI.Extensions
|
|||
{
|
||||
return Segments[segmentIndex - 1][index - 1];
|
||||
}
|
||||
else if (Segments.Count > 0)
|
||||
else if (Segments?.Count > 0)
|
||||
{
|
||||
var segmentIndexCount = 0;
|
||||
var indexCount = index;
|
||||
|
@ -480,4 +480,4 @@ namespace UnityEngine.UI.Extensions
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue