refactor nullPointerByDeRefAndChec
update