开发者社区 问答 正文

在 index 4 的 bind value 是 null

我使用的下面的代码,但是给出错误
screenshot
错误:java.lang.IllegalArgumentException: the bind value at index 4 is null
请问如何解释这个错误?

展开
收起
蛮大人123 2016-02-18 13:41:39 2560 分享 版权
1 条回答
写回答
取消 提交回答
  • 我说我不帅他们就打我,还说我虚伪

    这个错误的意思是你sql语句中绑定的第四个值是空的。(integerToDB(account.parentAccountId) != null ? integerToDB(account.parentAccountId).toString() : null),
    这个判断语句中可能返回了一个null,因此报错。

    2019-07-17 18:43:54
    赞同 展开评论
问答地址: