Skip to content

OpcodeCall.StaticExecute throws nullptr when a delegate without a closure is executed #3180

@BAM5

Description

@BAM5

This is happens when using OpcodePushDelegate or OpcodePushDelegateRelocateLater with the WithClosure field set to false.

A simple nullptr check ahead of this line will fix this.

for (int i = userDelegate.Closure.Count - 1 ; i >= 0 ; --i)

(.Closure is null)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions