From a7d0880295ff38ecadab2f4b7f4f0122bcfe7f52 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 29 Jul 2021 17:50:54 +0900 Subject: [PATCH] null check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 何故か null の時がある --- .../UniGLTF/Editor/UniGLTF/ScriptedImporter/RemapEditorBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/UniGLTF/Editor/UniGLTF/ScriptedImporter/RemapEditorBase.cs b/Assets/UniGLTF/Editor/UniGLTF/ScriptedImporter/RemapEditorBase.cs index b91a57190..169e13a5a 100644 --- a/Assets/UniGLTF/Editor/UniGLTF/ScriptedImporter/RemapEditorBase.cs +++ b/Assets/UniGLTF/Editor/UniGLTF/ScriptedImporter/RemapEditorBase.cs @@ -81,7 +81,7 @@ namespace UniGLTF { foreach (var key in m_keys) { - if (k.type.IsAssignableFrom(key.Type)) + if (k.type != null && k.type.IsAssignableFrom(key.Type)) { return false; }