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

使用模拟器正常,使用真机空指针是怎么回事?判空也不行 #7

Open
roybill opened this issue May 21, 2019 · 0 comments

Comments

@roybill
Copy link

roybill commented May 21, 2019

错误提示: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
大概是这个地方出问题:
` SortHelper sortHelper = new SortHelper() {
@OverRide
public String sortField(ItemData data) {
return data.getTitle();
}
};
// if(sortHelper!=null){

    //todo:模拟器可以,锤子手机这里为null
        sortHelper.sortByLetter(datas);`
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