dotnet-apiport icon indicating copy to clipboard operation
dotnet-apiport copied to clipboard

Object reference not set to an instance of an object.

Open JerkerPihl opened this issue 8 years ago • 2 comments

Testing on solution with different projects (Net4.6.1 and Core 1.1)

Detecting assembly references [Done]

  • Could not find file: 'C:\git\PRJ\PRJ\src\PRJ\bin\Release\net461\PRJ.dll'
  • No files were found to upload.

Finding source line information PRJ.dll [Done]

An unknown error occured. System.NullReferenceException: Object reference not set to an instance of an object. at ApiPortVS.SourceMapping.CciMetadataTraverser..ctor(String assemblyPath, ReportingResult analysis, PdbReader pdbReader) at ApiPortVS.SourceMapping.CciSourceLineMapper.GetSourceInfo(String assemblyPath, String pdbPath, ReportingResult report) at ApiPortVS.SourceMapping.SourceLineMapper.GetSourceInfo(IEnumerable1 assemblyPaths, ReportingResult report) at ApiPortVS.Analyze.ProjectAnalyzer.<>c__DisplayClass9_0.<AnalyzeProjectAsync>b__0() at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at ApiPortVS.Analyze.ProjectAnalyzer.d__9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at ApiPortVS.AnalyzeMenu.d__6.MoveNext()

JerkerPihl avatar Apr 05 '18 13:04 JerkerPihl

Hi @JerkerPihl - sorry for the slow response. Do you have a small repro we can use to test this with? Is PRJ.dll something that you can share with us?

twsouthwick avatar Dec 18 '18 03:12 twsouthwick

@JerkerPihl Hope you have worked on the problem. Closing the inactive issue for now. Please feel free to reopen the issue once you can share a repro.

Lxiamail avatar Jun 07 '19 17:06 Lxiamail