Commit 334894df authored by Paul Sliwowski's avatar Paul Sliwowski
Browse files

Fixed Monkey NullPointerException when TimeZoneInfo could be null.

Bug: 9478884
Change-Id: I57e2b397ab2de22b5462b3e008eebe5028eaa653
parent 359226b2
......@@ -308,8 +308,10 @@ public class TimeZoneResultAdapter extends BaseAdapter implements OnItemClickLis
public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
if (mTimeZoneSetListener != null) {
TimeZoneInfo tzi = (TimeZoneInfo) v.getTag(VIEW_TAG_TIME_ZONE);
mTimeZoneSetListener.onTimeZoneSet(tzi);
saveRecentTimezone(tzi.mTzId);
if (tzi != null) {
mTimeZoneSetListener.onTimeZoneSet(tzi);
saveRecentTimezone(tzi.mTzId);
}
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment