ZhangZhihui's Blog  

 

 

 

If there are multiple init() functions in a package, don't use in an init() function a global variable that is initialized in another init() function, because the using might be before its initialization which can cause null pointer error.

posted on 2024-06-11 19:47  ZhangZhihuiAAA  阅读(4)  评论(0编辑  收藏  举报