0

尝试搜索我的编辑文本框时在 lohcat 中出现此异常。当我在搜索框中输入任何后者时,我的应用程序突然被强制关闭并显示此异常。

03-06 10:38:31.433: E/AndroidRuntime(750): FATAL EXCEPTION: main
03-06 10:38:31.433: E/AndroidRuntime(750): java.lang.NullPointerException
03-06 10:38:31.433: E/AndroidRuntime(750):  at android.widget.SimpleAdapter.getCount(SimpleAdapter.java:93)
03-06 10:38:31.433: E/AndroidRuntime(750):  at android.widget.AdapterView.checkFocus(AdapterView.java:700)
03-06 10:38:31.433: E/AndroidRuntime(750):  at android.widget.AdapterView$AdapterDataSetObserver.onInvalidated(AdapterView.java:823)
03-06 10:38:31.433: E/AndroidRuntime(750):  at android.widget.AbsListView$AdapterDataSetObserver.onInvalidated(AbsListView.java:5600)
03-06 10:38:31.433: E/AndroidRuntime(750):  at android.database.DataSetObservable.notifyInvalidated(DataSetObservable.java:47)
03-06 10:38:31.433: E/AndroidRuntime(750):  at android.widget.BaseAdapter.notifyDataSetInvalidated(BaseAdapter.java:59)
03-06 10:38:31.433: E/AndroidRuntime(750):  at android.widget.SimpleAdapter$SimpleFilter.publishResults(SimpleAdapter.java:383)
03-06 10:38:31.433: E/AndroidRuntime(750):  at android.widget.Filter$ResultsHandler.handleMessage(Filter.java:282)
03-06 10:38:31.433: E/AndroidRuntime(750):  at android.os.Handler.dispatchMessage(Handler.java:99)
03-06 10:38:31.433: E/AndroidRuntime(750):  at android.os.Looper.loop(Looper.java:137)
03-06 10:38:31.433: E/AndroidRuntime(750):  at android.app.ActivityThread.main(ActivityThread.java:4340)
03-06 10:38:31.433: E/AndroidRuntime(750):  at java.lang.reflect.Method.invokeNative(Native Method)
03-06 10:38:31.433: E/AndroidRuntime(750):  at java.lang.reflect.Method.invoke(Method.java:511)
03-06 10:38:31.433: E/AndroidRuntime(750):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
03-06 10:38:31.433: E/AndroidRuntime(750):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
03-06 10:38:31.433: E/AndroidRuntime(750):  at dalvik.system.NativeStart.main(Native Method)
4

0 回答 0