Skip to content

Commit dd8f899

Browse files
author
The Android Automerger
committed
Revert "Restore broken CursorWindow.getType behavior."
This reverts commit aa32c30.
1 parent f78da99 commit dd8f899

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/jni/android_database_CursorWindow.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,8 @@ static jint nativeGetType(JNIEnv* env, jclass clazz, jint windowPtr,
147147

148148
field_slot_t* fieldSlot = window->getFieldSlotWithCheck(row, column);
149149
if (!fieldSlot) {
150-
// FIXME: This is really broken but we have CTS tests that depend
151-
// on this legacy behavior.
152-
//throwExceptionWithRowCol(env, row, column);
153-
return FIELD_TYPE_NULL;
150+
throwExceptionWithRowCol(env, row, column);
151+
return NULL;
154152
}
155153
return fieldSlot->type;
156154
}

0 commit comments

Comments
 (0)