Felix 2 лет назад
Родитель
Сommit
cbee25a267
2 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      ModeTypeGenerator.cs
  2. BIN
      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);
                 }

BIN
WingInterfaceLibrary.dll