Skip to content
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

Uncaught Error: Call to a member function getPid() on null #193

Open
ziggurad opened this issue Sep 26, 2023 · 0 comments
Open

Uncaught Error: Call to a member function getPid() on null #193

ziggurad opened this issue Sep 26, 2023 · 0 comments
Labels
Community Support welcome Should be supported by the community

Comments

@ziggurad
Copy link

Hello,

In my Sentry I found such an error: Uncaught Error: Call to a member function getPid() on null
from:
Elements\Bundle\ProcessManagerBundle\Model\MonitoringItem::isAlive
code:

    public function isAlive(): bool
    {
        if ($this->isMessengerPending()) {
            return true;
        }
        if ($this->getPid()) {
            $messageBus = \Pimcore::getContainer()->get('messenger.bus.pimcore-core');
            $message = new CheckCommandAliveMessage($this->getId());
            $messageBus->dispatch($message);

            return (bool)self::getById($this->getId())->getPid();
        } else {
            return false;
        }
    }
@ctippler ctippler added the Community Support welcome Should be supported by the community label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Support welcome Should be supported by the community
Projects
None yet
Development

No branches or pull requests

2 participants