Skip to content

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

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)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions