Skip to content

Conversation

@max-leuthaeuser
Copy link
Contributor

No description provided.

Copy link
Contributor

@maltek maltek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's fix .method to return an Option[] instead of crashing when there is no method

@max-leuthaeuser
Copy link
Contributor Author

max-leuthaeuser commented Jan 16, 2026

That only shifts the issue to CfgNodeMethods.method (or higher up the call chain). All these methods are not null-safe.
Also: having no parent method always indicates a frontend issue so crashing early is good.

No more special handling to account for invalid CPG format when
expanding from CFG nodes to METHOD node.
The frontends should by now be fixed, lets see what our integration
tests say.
@ml86
Copy link
Contributor

ml86 commented Jan 19, 2026

As discussed on Zoom, we can remove this special handling this the frontends have already been fixed.

@ml86 ml86 requested a review from maltek January 19, 2026 08:57
@maltek
Copy link
Contributor

maltek commented Jan 19, 2026

we have to finish review and merge #5701 before this one

@ml86
Copy link
Contributor

ml86 commented Jan 19, 2026

I thought that is already in and released...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants