Fix: pengine: Prevent possible segfault
Merge pull request #522 from gao-yan/pengine-segfault

Fix: pengine: Prevent possible segfault