Skip to content

GetEnterpriseUsersWithMarkerAsync throws NRE when evaluating Entries #948

@watfordsuzy

Description

@watfordsuzy

Description of the Issue

If I include an externalAppUserId to a call to GetEnterpriseUsersWithMarkerAsync the resulting marker based collection has a null Entries field.

Steps to Reproduce

string? marker = null;
do
{
    var result = await client.UsersManager.GetEnterpriseUsersWithMarkerAsync(marker, externalAppUserId: "user_id");
    foreach (BoxUser user in result.Entries) // NullReferenceException (result.Entries)
    {
        // ...
    }

    marker = result.NextMarker;
}
while (!string.IsNullOrWhiteSpace(marker));

Expected Behavior

The list of entries is enumerated.

Error Message, Including Stack Trace

This is in a durable function app and the stack trace is a bit useless.

Screenshots

Versions Used

.Net SDK: 5.7.0
Windows: dotnet-isolated|8.0

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions