We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version:3.9.0
异常定位: class: org.xutils.db.table.ColumnEntity method: public Object getColumnValue(Object entity) line:87
描述: public Object getColumnValue(Object entity) { Object fieldValue = getFieldValue(entity); if (this.isAutoId && (fieldValue.equals(0L) || fieldValue.equals(0))) { return null; } return columnConverter.fieldValue2DbValue(fieldValue); } 当保存对象isAutoId为True时,对应字段为null时,导致fieldValue.equals(0L)报空指针异常 我对象中id的类型为Integer,所以有可能为空,这里使用equals(0)我猜想是不是自增类型只能用int呀
The text was updated successfully, but these errors were encountered:
No branches or pull requests
version:3.9.0
异常定位:
class: org.xutils.db.table.ColumnEntity
method: public Object getColumnValue(Object entity)
line:87
描述:
public Object getColumnValue(Object entity) {
Object fieldValue = getFieldValue(entity);
if (this.isAutoId && (fieldValue.equals(0L) || fieldValue.equals(0))) {
return null;
}
return columnConverter.fieldValue2DbValue(fieldValue);
}
当保存对象isAutoId为True时,对应字段为null时,导致fieldValue.equals(0L)报空指针异常
我对象中id的类型为Integer,所以有可能为空,这里使用equals(0)我猜想是不是自增类型只能用int呀
The text was updated successfully, but these errors were encountered: