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

[FAB-16957] Fix nil pointer panic flake in deliver_test #704

Merged
merged 1 commit into from
Feb 24, 2020

Conversation

caod123
Copy link

@caod123 caod123 commented Feb 21, 2020

Type of change

  • Bug fix

Description

Seems like info.GetStart().GetSpecified() can somehow return nil on
subsequent calls. Let's just assign it before the first nil check and
use it for the rest of the assertion.

Related issues

FAB-16957

@caod123 caod123 requested a review from a team as a code owner February 21, 2020 16:22
Copy link
Contributor

@yacovm yacovm left a comment

Choose a reason for hiding this comment

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

Left a comment

Copy link
Contributor

@yacovm yacovm left a comment

Choose a reason for hiding this comment

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

Left a comment

* Seems like info.GetStart().GetSpecified() can somehow return nil on
subsequent calls. Let's just assign it before the first nil check and
use it for the rest of the assertion.

Signed-off-by: Danny Cao <dcao@us.ibm.com>
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.

2 participants