Fixed lock null key check.