[Fix] NPE on ptime from console
Merge pull request #435 from GunfighterJ/2.9

[Fix] NPE on ptime from console