fix getEntry is null exception