-
Notifications
You must be signed in to change notification settings - Fork 755
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
fix NPE in deliverResponse() method of Request's subclass. #64
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I signed it!
…------------------ 原始邮件 ------------------
发件人: "googlebot";<notifications@github.com>;
发送时间: 2017年7月30日(星期天) 晚上9:55
收件人: "google/volley"<volley@noreply.github.com>;
抄送: "黄金夫"<630569027@qq.com>; "Author"<author@noreply.github.com>;
主题: Re: [google/volley] fix NPE in deliverResponse() method of Request'ssubclass. (#64)
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
Please visit https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.
If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
If your company signed a CLA, they designated a Point of Contact who decides which employees are authorized to participate. You may need to contact the Point of Contact for your company and ask to be added to the group of authorized contributors. If you don't know who your Point of Contact is, direct the project maintainer to go/cla#troubleshoot.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
CLAs look good, thanks! |
merge origin
Thank you for sending this. Do you actually have a use case where you want to pass in a null listener? If not, I think it would be friendlier to developers if we instead had the constructors for these classes check whether the listener is null and throw an IllegalArgumentException if they are. You have three choices for what to do when a developer passes in a null listener:
Since a developer who really didn't care about the response could always pass in a listener that does nothing, that feels safest to me. (And it seems very unlikely this would happen because you should really care about the responses coming back successfully, I'd think). |
Thanks for response. |
Thanks, I didn't think to check how mErrorListener was handled in the Request class. I'll take this for now as an improvement and have filed #65 to consider cleaning up the two listeners together. |
I find that in ClearCacheRequest class, it not need whether a mListener or a mErrorListener. |
Noted at #65, thanks. |
No description provided.