From 5ad6934fd1a1127f25a69b420d879ea2ce0e7ccb Mon Sep 17 00:00:00 2001 From: Shinsuke Sugita Date: Mon, 10 Jul 2017 10:13:26 +0900 Subject: [PATCH] null check atlas may become null --- .../Scripts/Sample Components/Legacy/AtlasRegionAttacher.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/spine-unity/Assets/Examples/Scripts/Sample Components/Legacy/AtlasRegionAttacher.cs b/spine-unity/Assets/Examples/Scripts/Sample Components/Legacy/AtlasRegionAttacher.cs index 319f1bea9..253f62ecf 100644 --- a/spine-unity/Assets/Examples/Scripts/Sample Components/Legacy/AtlasRegionAttacher.cs +++ b/spine-unity/Assets/Examples/Scripts/Sample Components/Legacy/AtlasRegionAttacher.cs @@ -62,6 +62,7 @@ namespace Spine.Unity.Modules { if (!this.enabled) return; atlas = atlasAsset.GetAtlas(); + if (atlas == null) return; float scale = skeletonRenderer.skeletonDataAsset.scale; foreach (var entry in attachments) {