microsoft / microsoft/VFSForGit

NullReferenceException in CacheServerInfo.HasResolvedName

Open
#233 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.