fix NPE by checking

This commit is contained in:
Eric House 2013-11-21 18:57:58 -08:00
parent 9820f6bf6b
commit f2ff596ff3

View file

@ -1338,7 +1338,12 @@ public class GamesList extends XWExpandableListActivity
private void selectJustLaunched()
{
clearSelections();
m_adapter.getGameItemFor( m_launchedGame ).setSelected( true );
if ( null != m_adapter ) {
GameListItem item = m_adapter.getGameItemFor( m_launchedGame );
if ( null != item ) {
item.setSelected( true );
}
}
}
public static void onGameDictDownload( Context context, Intent intent )