Skip to content

Conversation

@ashvindeodhar
Copy link
Member

e.Table.tsc.client.exec can return nil resp and non-nil err. This causes
resp.StatusCode to crash with nil dereference. This change adds the
nil check on resp before accessing StatusCode.

e.Table.tsc.client.exec can return nil resp and non-nil err. This causes
resp.StatusCode to crash with nil dereference. This change adds the
nil check on resp before accessing StatusCode.
@azuresdkci
Copy link

Can one of the admins verify this patch?

@jhendrixMSFT jhendrixMSFT merged commit dee1b8d into Azure:latest Feb 26, 2020
@jhendrixMSFT
Copy link
Member

@ArcturusZhang can you please release an updated SDK with this fix?

@ashvindeodhar ashvindeodhar deleted the patch-1 branch February 26, 2020 19:28
@ashvindeodhar
Copy link
Member Author

Thanks @jhendrixMSFT! @ArcturusZhang our Container Networking release for GA depends on this. Appreciate you releasing the updated SDK tonight.

ArcturusZhang pushed a commit to ArcturusZhang/azure-sdk-for-go that referenced this pull request Feb 27, 2020
e.Table.tsc.client.exec can return nil resp and non-nil err. This causes
resp.StatusCode to crash with nil dereference. This change adds the
nil check on resp before accessing StatusCode.
jhendrixMSFT pushed a commit that referenced this pull request Feb 27, 2020
* Fix SDK Automation Failure (#7545)

* Fix nil dereference error (#7546)

e.Table.tsc.client.exec can return nil resp and non-nil err. This causes
resp.StatusCode to crash with nil dereference. This change adds the
nil check on resp before accessing StatusCode.

* Generated from latest swagger

* v40.0.0

Co-authored-by: Phoenix He <[email protected]>
Co-authored-by: Ashvin Deodhar <[email protected]>
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.

3 participants