Detect instead of assume Cursor field types.

This should avoid an IllegalStateException in this area.
1 file changed