Merge "Guard against monkey crash" into nyc-dev
am: c8bac80390
* commit 'c8bac80390653f9ead129000f52e75f4be826f50':
Guard against monkey crash
This commit is contained in:
@@ -65,7 +65,7 @@ public class SettingsDrawerAdapter extends BaseAdapter {
|
||||
}
|
||||
|
||||
public Tile getTile(int position) {
|
||||
return mItems.get(position).tile;
|
||||
return mItems.get(position) != null ? mItems.get(position).tile : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user