Cursor
API 告诉该行为是由尝试访问空值列时由实现定义的,如果我转到 SQLiteCursor,则不会记录该行为。SQLiteCursor
是返回NULL
还是抛出Exception
?
没关系,我通过使用 isNull 方法检查空值解决了这个问题。
cursor.isEmpty() 正在为我工作。