Skip to content

Commit

Permalink
[fix] 修复 MethodBridge.Analyzer::TryAddAndWalkGenericType 某些情况下抛出空指针异常…
Browse files Browse the repository at this point in the history
…的bug
  • Loading branch information
walon committed Oct 19, 2022
1 parent 15319a5 commit 276307d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Editor/MethodBridge/Analyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ public Analyzer(Options options)

private void TryAddAndWalkGenericType(GenericClass gc)
{
if (gc == null)
{
return;
}
lock(_lock)
{
gc = gc.ToGenericShare();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 276307d

Please sign in to comment.