Skip to content

fix: check body property when is undefined#1212

Merged
dhmlau merged 1 commit intoloopbackio:masterfrom
cesaragustin:fix_undefined_body
Apr 12, 2026
Merged

fix: check body property when is undefined#1212
dhmlau merged 1 commit intoloopbackio:masterfrom
cesaragustin:fix_undefined_body

Conversation

@cesaragustin
Copy link
Copy Markdown

Description

When using client.describe(), the "if" condition crashes when trying to read the Fault property of the body object which could be undefined in some scenarios.

  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style
    guide

Signed-off-by: César Agustín <cesar.gonzalez@zweicom.com>
Copy link
Copy Markdown
Member

@dhmlau dhmlau left a comment

Choose a reason for hiding this comment

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

@cesaragustin, thanks for the PR.

@dhmlau dhmlau merged commit 8dc75e0 into loopbackio:master Apr 12, 2026
10 checks passed
@dhmlau
Copy link
Copy Markdown
Member

dhmlau commented Apr 12, 2026

@cesaragustin, thanks for your contribution. Your PR has been merged! 🎉

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