on a null object reference 错误

来源:互联网 发布:app无网络提示 编辑:程序博客网 时间:2024/05/16 01:57
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.AutoCompleteTextView.addTextChangedListener(android.text.TextWatcher)' on a null object reference




这种情况指的是autocompleteTextView 的控件没有指定好 (autocompletetextview) findView(R.id)  之类的
0 0