diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictBrowseActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictBrowseActivity.java index e982d6271..a75be877b 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictBrowseActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictBrowseActivity.java @@ -128,6 +128,9 @@ public class DictBrowseActivity extends XWListActivity // SectionIndexer public int getPositionForSection( int section ) { + if ( section >= m_indices.length ) { + section = m_indices.length - 1; + } return m_indices[section]; }