3

Cursor API tells that the behavior is defined by the implementation when a null valued column is tried to be accessed and If I go to SQLiteCursor, the behavior is not documented. Does the SQLiteCursor return a NULL or throw an Exception?

500865
  • 6,920
  • 7
  • 44
  • 87

2 Answers2

5

Never mind, I got the problem solved by checking for null value using the isNull method.

500865
  • 6,920
  • 7
  • 44
  • 87
-1

cursor.isEmpty() is working for me.