Skip to content

Sync core to HEAD of typespec/microsoft#11007: fix null LRO error response bodies#3350

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/sync-with-core-of-head-11007
Draft

Sync core to HEAD of typespec/microsoft#11007: fix null LRO error response bodies#3350
Copilot wants to merge 2 commits into
mainfrom
copilot/sync-with-core-of-head-11007

Conversation

Copilot AI commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Bumps the core submodule to 22a529e and applies the corresponding generated-file updates. The core fix changes management LRO error response handling so a null response body produces new byte[0] instead of null.

Core change (in typespec)

  • FluentServiceClientTemplate.java: responseBody == null ? null → new byte[0] to avoid NPE when service returns no body on LRO error
  • Adds FluentServiceClientTemplateTests unit test

This repo

  • Core submodule → 22a529e
  • Regenerated 14 management *ClientImpl.java files in typespec-tests to reflect the template change
// before
this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8);

// after
this.responseBody = responseBody == null ? new byte[0] : responseBody.getBytes(StandardCharsets.UTF_8);

Copilot AI changed the title Sync core with HEAD of typespec PR #11007: fix null LRO error response bodies Sync core to HEAD of typespec/microsoft#11007: fix null LRO error response bodies Jun 17, 2026
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