瀏覽代碼

修复BaseType为空的bug

Felix 2 年之前
父節點
當前提交
cbee25a267
共有 2 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ModeTypeGenerator.cs
  2. 二進制
      WingInterfaceLibrary.dll

+ 1 - 1
ModeTypeGenerator.cs

@@ -46,7 +46,7 @@ namespace FlutterCodeGenerator
                 {
                     return new BoolNullableModeType(argName);
                 }
-                else if (type == typeof(string) || type == typeof(char) || type.BaseType.Name == "BaseParamsString" || type.BaseType.Name == "BaseString")
+                else if (type == typeof(string) || type == typeof(char) || type.BaseType?.Name == "BaseParamsString" || type.BaseType?.Name == "BaseString")
                 {
                     return new StringModeType(argName);
                 }

二進制
WingInterfaceLibrary.dll