将文本设置为EditText会产生运行时异常

时间:2014-09-02 10:20:02

标签: android

EditText etFreeText = (EditText)pw.getContentView().findViewById(R.id.etSearch);

btnPopUpSearch.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {

etFreeText.setText(freeText_lastSearch.toString());

            });

日志:

09-02 06:14:51.327: W/Binder(13864): Caught a RuntimeException from the binder stub implementation.
09-02 06:14:51.327: W/Binder(13864): java.lang.NullPointerException
09-02 06:14:51.327: W/Binder(13864):    at android.view.textservice.SpellCheckerSession$SpellCheckerSessionListenerImpl.onGetSentenceSuggestions(SpellCheckerSession.java:430)
09-02 06:14:51.327: W/Binder(13864):    at com.android.internal.textservice.ISpellCheckerSessionListener$Stub.onTransact(ISpellCheckerSessionListener.java:61)
09-02 06:14:51.327: W/Binder(13864):    at android.os.Binder.execTransact(Binder.java:404)
09-02 06:14:51.327: W/Binder(13864):    at dalvik.system.NativeStart.run(Native Method)

0 个答案:

没有答案