Skip to content

[Scheduler] NPE in debug:scheduler command #51052

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
faizanakram99 opened this issue Jul 20, 2023 · 1 comment
Closed

[Scheduler] NPE in debug:scheduler command #51052

faizanakram99 opened this issue Jul 20, 2023 · 1 comment

Comments

@faizanakram99
Copy link
Contributor

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

kbond added a commit that referenced this issue Jul 24, 2023
This PR was merged into the 6.3 branch.

Discussion
----------

[Scheduler] Fix NPE in `debug:scheduler` command

| Q             | A
| ------------- | ---
| Branch?       | 6.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #51052
| License       | MIT
| Doc PR        | n/a

Fix NPE in `debug:scheduler` command.

Commits
-------

401cd08 [Scheduler] Fix NPE in debug:scheduler command
@kbond
Copy link
Member

kbond commented Jul 24, 2023

Closed via #51055

@kbond kbond closed this as completed Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants