Null check in simulator , adding global time