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

Bugfix/control frame payload init crash #716

Merged
merged 3 commits into from
Aug 29, 2017

Conversation

BrettyWhite
Copy link
Contributor

Fixes #715

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

added in unit test methods to test initialization with nil data

Summary

Modifying the if statement from if (data != nil) {} to if (data.length > 0) {} fixed the issue. This change was made to all the classes with that method in the Control Frame Payloads folder

CLA

@BrettyWhite BrettyWhite added the bug A defect in the library label Aug 29, 2017
@BrettyWhite BrettyWhite self-assigned this Aug 29, 2017
__block NSData *testData = nil;

beforeEach(^{

Copy link
Contributor

Choose a reason for hiding this comment

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

Unneeded blank line on these tests

@joeljfischer joeljfischer merged commit e357d3d into develop Aug 29, 2017
@joeljfischer joeljfischer deleted the bugfix/ack_parse_data_error branch August 29, 2017 18:05
@joeljfischer joeljfischer added this to the 4.7.0 milestone Aug 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants