当前位置:网站首页>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
边栏推荐
- 3-global exception handling
- log4qt内存泄露问题,heob内存检测工具的使用
- PAT甲级 1150 旅行商问题
- What are the answers about older bloggers?
- Chaos and future of domestic digital collections
- Dilworth theorem
- Description of rollingfileappender attribute in logback
- 新生代公链再攻「不可能三角」
- Scala higher order (10): exception handling in Scala
- cs61abc分享会(六)程序的输入输出详解 - 标准输入输出,文件,设备,EOF,命令行参数
猜你喜欢

09 bloom filter

零数科技深度参与信通院隐私计算金融场景标准制定

Analyze the roadmap of 25 major DFI protocols and predict the seven major trends in the future of DFI

Using C language to skillfully realize the chess game -- Sanzi chess

Segger's hardware anomaly analysis

The new generation of public chain attacks the "Impossible Triangle"

PAT甲级 1146 拓扑顺序

Docker's latest super detailed tutorial - docker creates, runs, and mounts MySQL

2022年深圳杯A题破除“尖叫效应”与“回声室效应”走出“信息茧房”
![[WPF] realize language switching through dynamic / static resources](/img/23/1e089ce4a07128323824b25897a8c4.png)
[WPF] realize language switching through dynamic / static resources
随机推荐
Calculate program run time demo
QT topic: basic components (button class, layout class, output class, input class, container class)
RoBERTa:A Robustly Optimized BERT Pretraining Approach
【暑期每日一题】洛谷 P6336 [COCI2007-2008#2] BIJELE
【暑期每日一题】洛谷 P6500 [COCI2010-2011#3] ZBROJ
@RequestMapping 用法详解
BeanUtils.setProperty()
webapi接口文件下载时跨域问题
log4j Layout简介说明
10 practical uses of NFT
MySQL 45 讲 | 07 行锁功过:怎么减少行锁对性能的影响?
Docker's latest super detailed tutorial - docker creates, runs, and mounts MySQL
MySQL 45 talk | 07 line lock merits and demerits: how to reduce the impact of line lock on performance?
Zero technology is deeply involved in the development of privacy computing financial scenario standards of the ICT Institute
7-2 计算正五边形的面积和周长 (25分)
Sort out the two NFT pricing paradigms and four solutions on the market
RoBERTa:A Robustly Optimized BERT Pretraining Approach
What are the answers about older bloggers?
Logback log level introduction
The new generation of public chain attacks the "Impossible Triangle"