summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/jni/android_database_CursorWindow.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/jni/android_database_CursorWindow.cpp b/core/jni/android_database_CursorWindow.cpp
index 9ff2cb279101..14c6397db8c4 100644
--- a/core/jni/android_database_CursorWindow.cpp
+++ b/core/jni/android_database_CursorWindow.cpp
@@ -147,10 +147,8 @@ static jint nativeGetType(JNIEnv* env, jclass clazz, jint windowPtr,
field_slot_t* fieldSlot = window->getFieldSlotWithCheck(row, column);
if (!fieldSlot) {
- // FIXME: This is really broken but we have CTS tests that depend
- // on this legacy behavior.
- //throwExceptionWithRowCol(env, row, column);
- return FIELD_TYPE_NULL;
+ throwExceptionWithRowCol(env, row, column);
+ return NULL;
}
return fieldSlot->type;
}