Skip to content

[SCB-754] add null pointer check on AbstractRestInvocation.invocation#817

Merged
liubao68 merged 2 commits into
apache:masterfrom
yhs0092:check_null_invocation
Jul 19, 2018
Merged

[SCB-754] add null pointer check on AbstractRestInvocation.invocation#817
liubao68 merged 2 commits into
apache:masterfrom
yhs0092:check_null_invocation

Conversation

@yhs0092
Copy link
Copy Markdown
Member

@yhs0092 yhs0092 commented Jul 18, 2018

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [SCB-XXX] Fixes bug in ApproximateQuantiles, where you replace SCB-XXX with the appropriate JIRA issue.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See details in SCB-754

@yhs0092 yhs0092 force-pushed the check_null_invocation branch from f1bec2d to ecf8e8e Compare July 18, 2018 07:24
@coveralls
Copy link
Copy Markdown

coveralls commented Jul 18, 2018

Coverage Status

Coverage increased (+0.003%) to 87.052% when pulling 166181b on yhs0092:check_null_invocation into a18ab09 on apache:master.


restInvocation.sendResponseQuietly(response);

// just log, check nothing, and should not throw NPE
Copy link
Copy Markdown
Contributor

@liubao68 liubao68 Jul 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add an integration test for this scenario? Define a filter may not throw null and call a not exists service and got a 404.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, please review

@liubao68 liubao68 merged commit f722a00 into apache:master Jul 19, 2018
@yhs0092 yhs0092 deleted the check_null_invocation branch July 23, 2018 12:14
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

Successfully merging this pull request may close these issues.

4 participants