Null check on current process

Change-Id: Icf88f37da2fa594d8ff59faccf18cf975355c2b4