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

Unhandled Exception: type 'Null' is not a subtype of type 'String' #45

Open
zixinote opened this issue Jul 30, 2023 · 0 comments
Open
Assignees

Comments

@zixinote
Copy link

修改API基础接口地址登录报500错误,但终端显示的200,然后退出软件在允许就是下面的错误了

hahahah@MacBook-Pro sail-master % flutter run
Launching lib/main.dart on iPhone 14 Pro in debug mode...
Running Xcode build...
└─Compiling, linking and signing... 5.6s
Xcode build done. 14.6s
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'String'
#0 new UserEntity.fromMap (package:sail/entity/user_entity.dart:50:16)
#1 UserModel.refreshData (package:sail/models/user_model.dart:40:32)

#2 main (package:sail/main.dart:26:3)

Syncing files to device iPhone 14 Pro... 163ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

💪 Running with sound null safety 💪

An Observatory debugger and profiler on iPhone 14 Pro is available at:
http://127.0.0.1:59531/zhxKH2HQKi8=/
The Flutter DevTools debugger and profiler on iPhone 14 Pro is available at:
http://127.0.0.1:9104?uri=http://127.0.0.1:59531/zhxKH2HQKi8=/

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

2 participants