Change-Id: I87a6968c3a225c4535205386199838a0fad801b5
Signed-off-by: kh5325.kim <kh5325.kim@samsung.com>
//TextAssist.this.table.setFocus();\r
if (isPopupShown())\r
tableState = STATE_TABLE_FOCUSED;\r
- String text = TextAssist.this.table.getSelection()[0].getText();\r
- TextAssist.this.text.setText(text);\r
- TextAssist.this.text.setSelection(text.length());\r
- event.doit = doit;\r
+ TableItem[] selection = TextAssist.this.table.getSelection();\r
+ if (selection.length > 0) {\r
+ String text = selection[0].getText();\r
+ TextAssist.this.text.setText(text);\r
+ TextAssist.this.text.setSelection(text.length());\r
+ event.doit = doit;\r
+ }\r
}\r
\r
/**\r