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
8277932: Subject:callAs() not throwing NPE when action is null #6728
Conversation
8277932: Subject:callAs() not throwing NPE when action is null
|
Yes, the stack trace will be more useful with the explicit check, otherwise it would be buried inside other calls and it won't be so obvious that the argument passed to callAs is null.
@wangweij This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 3 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
|
/integrate |
Going to push as commit 10db0e4.
Your commit was automatically rebased without conflicts. |
Is there a test for this? (I see noreg-trivial is added but a test should be easy to add). |
I can add one, just thought it's not necessary. I didn't say noreg-hard. :-) |
Add null check. I must have thought the NPE will be thrown anyway but the
catch Exception
block swallows it.I added a noreg-trivial label. If you think differently can add one.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6728/head:pull/6728
$ git checkout pull/6728
Update a local copy of the PR:
$ git checkout pull/6728
$ git pull https://git.openjdk.java.net/jdk pull/6728/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6728
View PR using the GUI difftool:
$ git pr show -t 6728
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6728.diff