From 2588cf45ee846d1e782a86accd9bba1df9ee3e4a Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 24 Nov 2021 20:16:48 +0900 Subject: [PATCH] =?UTF-8?q?editor=20=E3=81=AE=20null=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/VRM10/Editor/EditorTool/VRM10ExpressionEditorTool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/VRM10/Editor/EditorTool/VRM10ExpressionEditorTool.cs b/Assets/VRM10/Editor/EditorTool/VRM10ExpressionEditorTool.cs index 15285914d..dbd828659 100644 --- a/Assets/VRM10/Editor/EditorTool/VRM10ExpressionEditorTool.cs +++ b/Assets/VRM10/Editor/EditorTool/VRM10ExpressionEditorTool.cs @@ -47,7 +47,7 @@ namespace UniVRM10 public override void OnToolGUI(EditorWindow window) { - var root = Selection.activeTransform.GetComponent(); + var root = Selection.activeTransform?.GetComponent(); if (root == null) { return;