Jelajahi Sumber

修复BaseType为空的bug

Felix 2 tahun lalu
induk
melakukan
cbee25a267
2 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      ModeTypeGenerator.cs
  2. TEMPAT SAMPAH
      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);
                 }

TEMPAT SAMPAH
WingInterfaceLibrary.dll