当前位置:网站首页>A trinomial expression that causes a null pointer
A trinomial expression that causes a null pointer
2022-04-23 04:59:00 【GreatorMan】
Developing user systems , Use... In role types in user permissions get Method in data copy , Keep reporting null pointer :
At the time of testing the data copy , The copy time is consistent and null pointer is reported , Later, according to the analysis and debugging, it is found that roleTypeKey The data is returned in the roleTypeKey It's empty , This is caused by the problem of data packing and unpacking ; enumeration RoleType Type in the Key by int data type , After the program is compiled, it is as follows :
@Transient
private Integer roleTypeKey;
public Interger getRoleTypeKey(){
return getRoleType() != null ? getRoleType().getEnumItem().getItamKey():roleTypeKey.intVal();
}
When roleTypeKey When the data is empty Copy call getRoleTypeKey(); Method is null pointer ;
版权声明
本文为[GreatorMan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220553102266.html
边栏推荐
- [2022 ICLR] Pyraformer: Low-Complexity Pyramidal Attention for Long-Range 时空序列建模和预测
- View analysis of scenic spots in ArcGIS
- The unity camera rotates with the mouse
- Pixel 5 5g unlocking tutorial (including unlocking BL, installing edxposed and root)
- Set Chrome browser background to eye protection (eye escort / darkreader plug-in)
- Unity camera rotation with sliding effect (rotation)
- Deep learning notes - semantic segmentation and data sets
- vscode ipynb文件没有代码高亮和代码补全解决方法
- 信息学奥赛一本通 1212:LETTERS | OpenJudge 2.5 156:LETTERS
- Manually write smart pointer shared_ PTR function
猜你喜欢
Field injection is not recommended using @ Autowired
【数据库】MySQL基本操作(基操~)
Making message board with PHP + MySQL
【数据库】表的查看、修改和删除
Excel protects worksheets and workbooks from damage
【数据库】MySQL单表查询
Pixel 5 5g unlocking tutorial (including unlocking BL, installing edxposed and root)
PHP+MySQL 制作留言板
DIY 一个 Excel 版的子网计算器
【数据库】MySQL多表查询(一)
随机推荐
Sword finger offer: the median in the data stream (priority queue large top heap small top heap leetcode 295)
退出vim的方法
MySQL time function query
Simply drag objects to the item bar
Differences between redis and MySQL
静态流水线和动态流水线的区别认识
Excel protects worksheets and workbooks from damage
Knowledge points sorting: ES6
The programmer starts the required application with one click of window bat
解决ValueError: Argument must be a dense tensor: 0 - got shape [198602], but wanted [198602, 16].
The vscode ipynb file does not have code highlighting and code completion solutions
JS détermine si la chaîne de nombres contient des caractères
Getprop property
信息学奥赛一本通 1212:LETTERS | OpenJudge 2.5 156:LETTERS
Day.js 常用方法
深度学习笔记 —— 物体检测和数据集 + 锚框
How can continuous integration (CI) / continuous delivery (CD) revolutionize automated testing
和谐宿舍(线性dp / 区间dp)
拼了!两所A级大学,六所B级大学,纷纷撤销软件工程硕士点!
Sword finger offer: symmetric binary tree (recursive iteration leetcode 101)