ardalis / ardalis/HttpClientTestExtensions

EnsureNoAutoRedirect has NullReferenceException when ITestOutputHelper is null

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
107
Forks
24
PR merge metrics
No merged PRs in 30d

Description

On the EnsureNoAutoRedirect extension method, when the optional ITestOutputHelper parameter is ommitted or null it has a NullReferenceException on line 24

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the EnsureNoAutoRedirect extension method and inspect line 24 with ITestOutputHelper omitted or null. Reproduce the failing call without the optional parameter, then verify it completes without a NullReferenceException while still handling output when a helper is supplied.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.