fix npe that only occurs in test
1 file changed