Ensure null safety.