onSelectedListener mCallback;
永远不会初始化,或者正在使用null值初始化。
public class Common{ onSelectedListener mCallback = new onSelectedListener(){ public void getFailureDialog(){ JOptionPane.showMessageDialog(null, "An Error Has Occurred."); } }; public interface onSelectedListener { public void getFailureDialog(); } public void myRecord(String email) { mCallback.getFailureDialog(); //now this works. }}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)