转自:http://stackoverflow.com/questions/5138278/android-dialog-with-edittext-keeps-coming-back-null-throw-exception
android中getText()出现NullPointerException错误
原文:http://www.cnblogs.com/suizi/p/3516635.html