fix NPE

Change-Id: Id658af4c0cf58b84bbe5172670f699be117d43e4