当前位置:网站首页>As long as flutter is data, it will be judged null
As long as flutter is data, it will be judged null
2022-07-29 07:40:00 【Dense breath】
flutter As long as it is data, it will be judged as null , If it is empty, an error will be reported , So when we call the network to request data , When obtaining data, it is necessary to judge null .
replyList! Namely replyList Can't be empty , If it is empty, an error will appear
int getBirthday (){
int bi = 0;
if(replyList!=null){
if(replyList!.otherInfo!=null){
if(replyList!.otherInfo!.birthday!=null){
bi = replyList!.otherInfo!.birthday!;
}
}
}
return bi;
}
Last call getBirthday () You can display the data
边栏推荐
- [summer daily question] Luogu p1601 a+b problem (high precision)
- Leetcode 209. subarray with the smallest length (2022.07.28)
- ef core 读取text类型慢_ef core读取大字符串字段慢
- LANDSCAPE
- [MySQL] - [subquery]
- Access数据库引入datagridview数据后,显示错误
- Log4qt memory leak, use of heob memory detection tool
- Scala higher order (IX): pattern matching in Scala
- 2022 Shenzhen Cup Title A: get rid of "scream effect" and "echo room effect" and get out of the "information cocoon room"
- STM32 operation w25q256 w25q16 SPI flash
猜你喜欢

NFT 的 10 种实际用途

QT专题:基础部件(按钮类,布局类,输出类,输入类,容器类)

Zero technology is deeply involved in the development of privacy computing financial scenario standards of the ICT Institute

1 - background project construction
Scala higher order (10): exception handling in Scala

mysql 使用 DATE_FORMAT(date,'%Y-%m')
![[summer daily question] Luogu p7760 [coci2016-2017 5] tuna](/img/9a/f857538c574fb54bc1accb737d7aec.png)
[summer daily question] Luogu p7760 [coci2016-2017 5] tuna

Thinkphp6 realizes database backup
![【暑期每日一题】洛谷 P6461 [COCI2006-2007#5] TRIK](/img/bf/c0e03f1bf477730f0b3661b3256d1d.png)
【暑期每日一题】洛谷 P6461 [COCI2006-2007#5] TRIK

207. Curriculum
随机推荐
Reflect reflect
【暑期每日一题】洛谷 P1601 A+B Problem(高精)
7-2 calculate the area and perimeter of a regular pentagon (25 points)
webapi接口文件下载时跨域问题
Prometheus and grafana
[summer daily question] Luogu p6320 [coci2006-2007 4] sibice
[summer daily question] Luogu p4414 [coci2006-2007 2] ABC
Introduction to log4j layout
3-global exception handling
【深度学习】数据准备-pytorch自定义图像分割类数据集加载
Write some DP
Strongly connected component
2022 Shenzhen Cup Title A: get rid of "scream effect" and "echo room effect" and get out of the "information cocoon room"
监听页面滚动位置定位底部按钮(包含页面初始化定位不对鼠标滑动生效的解决方案)
[summer daily question] Luogu p7760 [coci2016-2017 5] tuna
The difference between static library and dynamic library of program
NLP introduction + practice: Chapter 5: using the API in pytorch to realize linear regression
【WPF】通过动态/静态资源实现语言切换
Scala higher order (10): exception handling in Scala
树莓派的启动流程