dotnet / dotnet/docfx

MergeCommand NullReferenceException in LinkPhaseHandler.ExportManifest

Open
#2,492 0 comments 0 reactions 0 assignees View on GitHub
dotnet
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**DocFX Version Used**:

2.32.1.0

**Template used**: (`default` or `statictoc` or contain custom template)

Derived default template (custom style and a little bit JS)

**Steps to Reproduce**:

1. Clone https://github.com/FubarDevelopment/WebDavServer.git
2. Run the latest docfx with the provided docfx.json

**Expected Behavior**:

Documentatioon generation without error.

**Actual Behavior**:

Exception:

```
[18-03-06 07:20:05.918]Error:[MergeCommand]System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Microsoft.DocAsCode.Build.Engine.LinkPhaseHandler.<>c__DisplayClass17_0.b__0(FileModel m)
bei Microsoft.DocAsCode.Plugins.DocumentExceptionExtensions.RunAll[TElement](IReadOnlyList`1 elements, Action`1 action)
bei Microsoft.DocAsCode.Build.Engine.LinkPhaseHandler.ExportManifest(HostService hostService)
bei Microsoft.DocAsCode.Build.Engine.LinkPhaseHandler.Save(List`1 hostServices, Int32 maxParallelism)
bei Microsoft.DocAsCode.Build.Engine.LinkPhaseHandler.Handle(List`1 hostServices, Int32 maxParallelism)
bei Microsoft.DocAsCode.Build.Engine.PhaseProcessor.Process(List`1 hostServices, Int32 maxParallelism)
bei Microsoft.DocAsCode.Build.Engine.SingleDocumentBuilder.Build(IDocumentProcessor processor, DocumentBuildParameters parameters, IMarkdownService markdownService)
bei Microsoft.DocAsCode.SubCommands.MetadataMerger.MergePageViewModel(MetadataMergeParameters parameters)
bei Microsoft.DocAsCode.SubCommands.MetadataMerger.Merge(MetadataMergeParameters parameters)
bei Microsoft.DocAsCode.SubCommands.MergeCommand.MergeDocument(String baseDirectory, String outputDirectory)
8 Warning(s)
1 Error(s)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.