Commit 5675a86e by Daichi Sato

シリアル通信機器設定画面でのNullPointerException対応

parent 7f1cc633
...@@ -134,7 +134,7 @@ public class BaseSectionAdapter<T1, T2> extends BaseAdapter { ...@@ -134,7 +134,7 @@ public class BaseSectionAdapter<T1, T2> extends BaseAdapter {
} else { } else {
IndexPath indexPath = indexPathList.get(position); IndexPath indexPath = indexPathList.get(position);
SectionRowData rowData = (SectionRowData) rowList.get(indexPath.section).get(indexPath.row); SectionRowData rowData = (SectionRowData) rowList.get(indexPath.section).get(indexPath.row);
if (rowData.title.isEmpty()) { //タイトルが空白の場合はタップ不能に設定 if (rowData.title == null || rowData.title.isEmpty()) { //タイトルが空白の場合はタップ不能に設定
return false; return false;
} }
return super.isEnabled(position); return super.isEnabled(position);
......
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