Skip to content

[Scheduler] NPE in debug:scheduler command #51052

Closed
@faizanakram99

Description

@faizanakram99

Symfony version(s) affected

6.3.1

Description

$recurringMessage->getTrigger()->getNextRunDate(now())->format(\DateTimeInterface::ATOM),

This line causes an NPE since getNextRunDate can return null.

How to reproduce

Return null from any trigger (e.g. new CallbackTrigger(fn () => null) and run debug:scheduler command

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions