Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null check operator used on a null value #18

Closed
rasouliali1379 opened this issue Feb 6, 2022 · 4 comments
Closed

Null check operator used on a null value #18

rasouliali1379 opened this issue Feb 6, 2022 · 4 comments

Comments

@rasouliali1379
Copy link

rasouliali1379 commented Feb 6, 2022

Null check operator used on a null value #0 ResponseClassGenerator.generateResponse.<anonymous closure> (package:fantom/src/generator/response/response_class_generator.dart:41:45) #1 MapMixin.map (dart:collection/maps.dart:170:28) #2 ResponseClassGenerator.generateResponse (package:fantom/src/generator/response/response_class_generator.dart:38:68) #3 ResponseClassGenerator.generateResponses.<anonymous closure> (package:fantom/src/generator/response/response_class_generator.dart:89:29) #4 MapMixin.map (dart:collection/maps.dart:170:28) #5 ResponseClassGenerator.generateResponses (package:fantom/src/generator/response/response_class_generator.dart:81:71) #6 MethodResponseParser.parseResponses (package:fantom/src/generator/api/method/response_parser.dart:15:55) #7 ApiMethodGenerator._generateOperation (package:fantom/src/generator/api/method/api_method_generator.dart:117:63) #8 ApiMethodGenerator.generateMethods (package:fantom/src/generator/api/method/api_method_generator.dart:79:11) #9 ApiSubClassGenerator._generateApiMethods (package:fantom/src/generator/api/sub_class/api_sub_class_generator.dart:66:26) #10 ApiSubClassGenerator._generateFileContent (package:fantom/src/generator/api/sub_class/api_sub_class_generator.dart:35:17) #11 ApiSubClassGenerator.generate (package:fantom/src/generator/api/sub_class/api_sub_class_generator.dart:18:25) #12 ApiClassGenerator._generateApiClasses (package:fantom/src/generator/api/class/api_class_generator.dart:33:45) #13 ApiClassGenerator.generate (package:fantom/src/generator/api/class/api_class_generator.dart:20:24) #14 Generator.generate (package:fantom/src/generator/generator.dart:67:45) #15 GenerateCommand.runCommand (package:fantom/src/cli/commands/generate.dart:165:10) #16 BaseCommand.run (package:fantom/src/cli/commands/base_command.dart:38:12) <asynchronous suspension> #17 CommandRunner.runCommand (package:args/command_runner.dart:209:13) <asynchronous suspension> #18 FantomCli.run (package:fantom/src/cli/fantom_cli.dart:38:22) <asynchronous suspension> #19 main (file:///Users/samrd/Dev/Dart/Projects/fantom/bin/main.dart:6:18) <asynchronous suspension>

@payam-zahedi
Copy link
Contributor

@easazade @FatulM
we should check out this.

@easazade
Copy link
Collaborator

easazade commented Feb 7, 2022

hi @rasouliali1379 . can you provide the openapi file via a public link so we can reproduce this error?

@easazade
Copy link
Collaborator

@rasouliali1379 Closing this since there is no data to check the reported issue. feel free to reopen this

@rasouliali1379
Copy link
Author

@easazade close it, I don't care 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants