Synchronously throw NPEs where we cache objects

Bug: 5794401
Change-Id: If953e04b515233ecff28addb9df8fcbbeacc41ed
1 file changed