Skip to content

Null return issue #2

@UnaffiliatedCode

Description

@UnaffiliatedCode

.Net Core version 3.1 Build
version 1.2.27
File: ServiceNowClient.cs
Line:

(await this.GetDeserializedObjectFromResponse<RestResponse<JObject>>(response, Guid.NewGuid()).ConfigureAwait(false)).Item

This line is replicated in a few places, and causes an issue if the Rest application returns a null. With a status code 200/201/etc.

A nullable check, and return null would suffice for my purposes.
I was going to write the change and submit a P.R. however it appears that you fixed this, but only support .Net version 5.0 with that change.

Can there be a version 3.0 compatible build?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions