microsoft / microsoft/VFSForGit
NullReferenceException in CacheServerInfo.HasResolvedName
Open
Nobody has claimed this yet.
type: bug
- Dominant language
- C#
- Stars
- 6.1k
- Forks
- 474
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 8
Description
System.NullReferenceException: Object reference not set to an instance of an object.
at GVFS.Common.Http.CacheServerInfo.HasResolvedName() in c:\agent\_work\7\s\GVFS\GVFS.Common\Http\CacheServerInfo.cs:line 48
at GVFS.CommandLine.PrefetchVerb.GetCacheServerDisplay(CacheServerInfo cacheServer) in c:\agent\_work\7\s\GVFS\GVFS\CommandLine\PrefetchVerb.cs:line 310
at GVFS.CommandLine.PrefetchVerb.PrefetchCommits(ITracer tracer, GVFSEnlistment enlistment, GitObjectsHttpRequestor objectRequestor, CacheServerInfo cacheServer) in c:\agent\_work\7\s\GVFS\GVFS\CommandLine\PrefetchVerb.cs:line 183
at GVFS.CommandLine.PrefetchVerb.Execute(GVFSEnlistment enlistment) in c:\agent\_work\7\s\GVFS\GVFS\CommandLine\PrefetchVerb.cs:line 130
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting GVFS.Common/Http/CacheServerInfo.cs at line 48, then trace how GVFS.CommandLine/PrefetchVerb.cs calls HasResolvedName from lines 130, 183, and 310. Reproduce the prefetch path that produces this stack trace and determine which null state is possible; done means that path no longer raises NullReferenceException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100