fix SIGGEV

check blk==null before accessing