error: reference cannot be bound to dereferenced null pointer

Change-Id: Id0dbd21225534630b57514a9ddd7cf11a395f272