直接上代码:
12
//H付款方式Integer hPaymentWayId = fullfillDTOShip != null ? fullfillDTOShip.getHPaymentWayId() : 0;
看似正常的代码在遇到fullfillDTOShip.getHPaymentWayId()为null时会报NPE错误,为什么会这样呢?
monkeyGeek
生于忧患,死于安乐。永远不要停止思考。
中国 上海
文章
193
分类
28
标签
49
container
jvm
软件技术
Update your browser to view this website correctly. Update my browser now
×