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

java.lang.NullPointerException #1017

Closed
626838956 opened this issue Aug 27, 2019 · 4 comments
Closed

java.lang.NullPointerException #1017

626838956 opened this issue Aug 27, 2019 · 4 comments

Comments

@626838956
Copy link

java.lang.NullPointerException: Argument 'grantResults' of type int[] (#2 out of 3, zero-based) is marked by @android.support.annotation.NonNull but got null for it
at com.blankj.utilcode.util.PermissionUtils$PermissionActivity.onRequestPermissionsResult(Unknown Source:19)
at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7628)
at android.app.Activity.dispatchActivityResult(Activity.java:7478)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4462)

@626838956
Copy link
Author

这个非空注解能不能去掉,代码中判断非空

@Blankj
Copy link
Owner

Blankj commented Sep 2, 2019

好的,下版本就会修复的

@Blankj
Copy link
Owner

Blankj commented Sep 4, 2019

试试 1.25.10-alpha1

@Blankj Blankj closed this as completed Sep 4, 2019
@626838956
Copy link
Author

谢谢

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

2 participants