From 276307dc51dc53c4dfb29d3f11a433379d7138d2 Mon Sep 17 00:00:00 2001 From: walon Date: Wed, 19 Oct 2022 11:43:56 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8D=20MethodBridge.Analy?= =?UTF-8?q?zer::TryAddAndWalkGenericType=20=E6=9F=90=E4=BA=9B=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E6=8A=9B=E5=87=BA=E7=A9=BA=E6=8C=87=E9=92=88?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/MethodBridge/Analyzer.cs | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Editor/MethodBridge/Analyzer.cs b/Editor/MethodBridge/Analyzer.cs index 5cdd9e8..33d24e5 100644 --- a/Editor/MethodBridge/Analyzer.cs +++ b/Editor/MethodBridge/Analyzer.cs @@ -53,6 +53,10 @@ namespace HybridCLR.Editor.MethodBridge private void TryAddAndWalkGenericType(GenericClass gc) { + if (gc == null) + { + return; + } lock(_lock) { gc = gc.ToGenericShare(); diff --git a/package.json b/package.json index a26ed0d..b5872a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.focus-creative-games.hybridclr_unity", - "version": "0.7.0", + "version": "0.7.1", "displayName": "HybridCLR", "description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR", "category": "Runtime",