Skip to content

Conversation

@jupblb
Copy link
Member

@jupblb jupblb commented Nov 21, 2025

Check that the symbol is a class or module before calling asClassOrModuleRef(). This prevents crashes when processing symbols that are not classes or modules (e.g. fields or methods) but are encountered in contexts where a class or module reference was assumed.

The error can be triggered by running the indexer against Homebrew/brew repository.

Check that the symbol is a class or module before calling asClassOrModuleRef().
This prevents crashes when processing symbols that are not classes or modules
(e.g. fields or methods) but are encountered in contexts where a class or module
reference was assumed.

Amp-Thread-ID: https://ampcode.com/threads/T-3ff237da-1bb4-43d1-abb5-989b228d9f59
@jupblb jupblb self-assigned this Nov 21, 2025
@jupblb jupblb added the bug Something isn't working label Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants