Skip to content

Guard against null response in validation logic #6

Description

@rushillshah

Summary

The request validation path can access the response object before confirming it is non-null. Under certain conditions, the response can be null, so validation throws before the null-check path executes.

Impact

Requests that should be handled as validation failures can crash with a null-access error instead.

Expected behavior

Validation should check whether the response exists before reading any response fields or properties.

Suggested fix

Move the null guard ahead of any response access, then add regression coverage for the null-response path.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions