mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
Navigating to a target on startup first eagerly loads every relevant assembly's metadata so the entity search that follows can resolve it. That pre-load used the throwing GetMetadataFileAsync, so a restored session that still referenced an assembly whose file had since been deleted or moved crashed startup with an unhandled DirectoryNotFoundException instead of simply skipping the gone entry. Use GetMetadataFileOrNullAsync there: a missing or unreadable assembly now resolves to null and is skipped, which the entity search already tolerates (it uses the OrNull variant too). Assisted-by: Claude:claude-opus-4-8:Claude Codepull/3794/head
2 changed files with 37 additions and 2 deletions
Loading…
Reference in new issue