[PATCH] ndtest: Remove redundant NULL check