missing null-check on types