fix possible null obj handling
do not call _logger() everytime