首页 > 代码库 > null值插入数据库会报错

null值插入数据库会报错

2017-05-03 23:25:01,568 [com.creditharmony.adapter.dao.base.ParamRecordDao.insertException]-[DEBUG] ==> Parameters: 201705032324543866997(String), 接口服务器产生系统错误.(String),
java.lang.NullPointerException
at com.creditharmony.adapter.core.client.ClientServicePoxy.callService(ClientServicePoxy.java:151)

上面的错误是插入数据库错误,null值不能插入!

null值插入数据库会报错