listItemAdapter = new ReplayAdapter(context, listItem);
myCardFileListv = (ListView) dialog.findViewById(R.id.replay_card_list);
myCardFileListv.setAdapter(listItemAdapter);
myCardFileListv在之前有初始化组件。但是一到调用setAdapter(listItemAdapter); myCardFileListv就为空了。于是我就干脆把findViewById()放在了new一个Adapter的前面。就不报空了。