You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
null check operator used on a null value flutter #269
Activity
uni-do-to commentedon Aug 22, 2024
Same issue
sanjay-rb commentedon Aug 24, 2024
I am also facing same issue
`
get generate model with /Users/sanjayrb/projects/mtracker/json/account.json
Unhandled exception:
Null check operator used on a null value
#0 PubspecUtils.nullSafeSupport (package:get_cli/common/utils/pubspec/pubspec_utils.dart:146:76)
#1 new TypeDefinition (package:get_cli/common/utils/json_serialize/sintaxe.dart:81:22)
#2 new TypeDefinition.fromDynamic (package:get_cli/common/utils/json_serialize/sintaxe.dart:68:12)
#3 ModelGenerator._generateClassDefinition (package:get_cli/common/utils/json_serialize/model_generator.dart:68:36)
#4 ModelGenerator._generateClassDefinition (package:get_cli/common/utils/json_serialize/model_generator.dart:54:7)
#5 ModelGenerator.generateUnsafeDart (package:get_cli/common/utils/json_serialize/model_generator.dart:148:9)
#6 ModelGenerator.generateDartClasses (package:get_cli/common/utils/json_serialize/model_generator.dart:181:28)
#7 GenerateModelCommand.execute (package:get_cli/commands/impl/generate/model/model.dart:41:35)
<asynchronous suspension>
#8 main. (file:///Users/sanjayrb/.pub-cache/hosted/pub.dev/get_cli-1.9.1/bin/get.dart:18:38)
<asynchronous suspension>
#9 main (file:///Users/sanjayrb/.pub-cache/hosted/pub.dev/get_cli-1.9.1/bin/get.dart:18:9)
<asynchronous suspension>
`
bigbott commentedon Aug 28, 2024
Same here.
kingyyy commentedon Aug 29, 2024
Same here.
locooo commentedon Aug 30, 2024
Unhandled exception:
Null check operator used on a null value
#0 PubspecUtils.nullSafeSupport (package:get_cli/common/utils/pubspec/pubspec_utils.dart:146:76)
#1 new TypeDefinition (package:get_cli/common/utils/json_serialize/sintaxe.dart:81:22)
#2 new TypeDefinition.fromDynamic (package:get_cli/common/utils/json_serialize/sintaxe.dart:68:12)
#3 ModelGenerator._generateClassDefinition (package:get_cli/common/utils/json_serialize/model_generator.dart:68:36)
#4 ModelGenerator.generateUnsafeDart (package:get_cli/common/utils/json_serialize/model_generator.dart:148:9)
#5 ModelGenerator.generateDartClasses (package:get_cli/common/utils/json_serialize/model_generator.dart:181:28)
#6 GenerateModelCommand.execute (package:get_cli/commands/impl/generate/model/model.dart:41:35)
#7 main. (file:///Users/locoo/.pub-cache/hosted/pub.dev/get_cli-1.9.1/bin/get.dart:18:38)
#8 main (file:///Users/locoo/.pub-cache/hosted/pub.dev/get_cli-1.9.1/bin/get.dart:18:9)
irayshi commentedon Sep 9, 2024
I also had the same problem, so for now I downgraded the version to 1.8.1 because I don't know why I can't install version 1.8.4.
knottx commentedon Oct 9, 2024
See this #283
whitecodel commentedon Nov 12, 2024
You can try this CLI tools for generating models
https://github.com/whitecodel/jsontodart