[fix] 修复 MethodBridge.Analyzer::TryAddAndWalkGenericType 某些情况下抛出空指针异常的bug

main
walon 2022-10-19 11:43:56 +08:00
parent 15319a59fa
commit 276307dc51
2 changed files with 5 additions and 1 deletions

View File

@ -53,6 +53,10 @@ namespace HybridCLR.Editor.MethodBridge
private void TryAddAndWalkGenericType(GenericClass gc) private void TryAddAndWalkGenericType(GenericClass gc)
{ {
if (gc == null)
{
return;
}
lock(_lock) lock(_lock)
{ {
gc = gc.ToGenericShare(); gc = gc.ToGenericShare();

View File

@ -1,6 +1,6 @@
{ {
"name": "com.focus-creative-games.hybridclr_unity", "name": "com.focus-creative-games.hybridclr_unity",
"version": "0.7.0", "version": "0.7.1",
"displayName": "HybridCLR", "displayName": "HybridCLR",
"description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR", "description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR",
"category": "Runtime", "category": "Runtime",