[Fix]NPE on ptime from console
Merge pull request #436 from GunfighterJ/master

[Fix] NPE on ptime from console