GreenDao3.3.0 报错java.lang.IllegalArgumentException: the bind value at index 1 is null

When querying GreendDao, if the id query is automatically added by default, the id cannot be queried, and vice versa. The same is true for other primary keys.
Low-level errors.
Example: The DAO noted in the id is auto-incremented.
try { FeedBackDao dao = getDaoSession().getFeedBackDao(); // FeedBack feed = dao.queryBuilder() // .where(FeedBackDao.Properties.Id.eq(feedBack.getId())) // .build() / / .unique(); // if (feed != null) { // feedBack.setId(feed.getId()); //} dao.insertOrReplace(feedBack); dao.refresh(feedBack); end










Guess you like

Origin blog.csdn.net/weixin_41422638/article/details/112690968