error: reference cannot be bound to dereferenced null pointer

Change-Id: Ica39bcce389fc5d03a3902d9f703a0efa284ec92