在customDialogBox上获取java.lang.NullPointerException

时间:2015-05-31 11:37:10

标签: java android nullpointerexception customdialog

我正在为此方法获取java.lang.NullPointerException。我检查了适配器,列表很好,列表是在fragment_phonelist xml文件下的。

{{1}}

请帮助..

1 个答案:

答案 0 :(得分:1)

这一行

ListView PhoneListView = (ListView)findViewById(R.id.list_phone); 

不应该是这样的:

ListView PhoneListView = (ListView)dialog.findViewById(R.id.list_phone);