b/3279789 Fixed NPE in CalendarUtils$TimeZoneUtils$AsyncTZHandler.onQueryComplete

Null cursor was returned from query

Change-Id: I68d3852756b159a63c9d4c9aa889ac6edaa16015
This commit is contained in:
Michael Chan
2010-12-13 18:25:08 -08:00
parent 666a5ed981
commit d983b4cd84

View File

@@ -88,6 +88,12 @@ public class CalendarUtils {
@Override
protected void onQueryComplete(int token, Object cookie, Cursor cursor) {
synchronized (mTZCallbacks) {
if (cursor == null) {
mTZQueryInProgress = false;
mFirstTZRequest = true;
return;
}
boolean writePrefs = false;
// Check the values in the db
int keyColumn = cursor.getColumnIndexOrThrow(CalendarCache.KEY);