Skip to content

Commit 4cc8baf

Browse files
Jeff BrownAndroid (Google) Code Review
authored andcommitted
Merge "Restore broken CursorWindow.getType behavior. Bug: 5430009"
2 parents b762d1e + aa32c30 commit 4cc8baf

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

core/jni/android_database_CursorWindow.cpp

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

148148
field_slot_t* fieldSlot = window->getFieldSlotWithCheck(row, column);
149149
if (!fieldSlot) {
150-
throwExceptionWithRowCol(env, row, column);
151-
return NULL;
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;
152154
}
153155
return fieldSlot->type;
154156
}

0 commit comments

Comments
 (0)