Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo运行出错 #1

Open
Stonekity opened this issue Jul 11, 2016 · 0 comments
Open

Demo运行出错 #1

Stonekity opened this issue Jul 11, 2016 · 0 comments

Comments

@Stonekity
Copy link

Stonekity commented Jul 11, 2016

使用正则匹配文件中的test方法,获取test方法源代码时,抛空指针异常。

Process: com.example.avoscloud_demo, PID: 25802 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.replaceAll(java.lang.String, java.lang.String)' on a null object reference at com.example.avoscloud_demo.DemoBaseActivity.formatToTwoSpacesIndent(DemoBaseActivity.java:131) at com.example.avoscloud_demo.DemoBaseActivity.getMethodSourceCode(DemoBaseActivity.java:127) at com.example.avoscloud_demo.DemoBaseActivity.onListItemClick(DemoBaseActivity.java:210) at android.app.ListActivity$2.onItemClick(ListActivity.java:319)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant