missing null check