Start 1.11.13

This commit is contained in:
defnotken
2025-09-17 19:58:25 -05:00
parent 5dce1977c7
commit fe898cdc2b

View File

@@ -189,7 +189,14 @@ public sealed class FileCacheManager : IHostedService
Parallel.ForEach(allEntities, entity =>
{
cacheDict[entity.PrefixedFilePath] = entity;
if (entity != null && entity.PrefixedFilePath != null)
{
cacheDict[entity.PrefixedFilePath] = entity;
}
else
{
_logger.LogWarning("Null FileCacheEntity or PrefixedFilePath encountered in cache population: {entity}", entity);
}
});
var cleanedPaths = new ConcurrentDictionary<string, string>(StringComparer.OrdinalIgnoreCase);