error: reference cannot be bound to dereferenced null pointer

Change-Id: I4a5c83ba0f1e741104edc933459e7aea9c4aac1f