statiqdev / Statiq.Framework

A flexible and extensible static content generation framework for .NET.
https://statiq.dev/framework
MIT License
421 stars 74 forks source link

Custom AnalyzeCSharp WhereSymbol causing ArgumentNullException #276

Open girlpunk opened 5 months ago

girlpunk commented 5 months ago

I have a custom AnalyzeCSharp implementation to produce customised pages for a number of classes. This uses WhereSymbol to filter to the specific classes. However, this has recently started throwing an exception for some classes. I'm unsure which classes or what changes to the source being analysed caused this, as the error does not indicate which file or class is causing the error.

[ERRO] Blocks/Process » ExecuteIf » CacheDocuments » ExecuteConfig » AnalyzeCSharp » Value cannot be null. (Parameter 'symbol')