Object reference error message

we would recommend to debug and inspecting the email variable e.g. within the immediate panel. Here also you can prototype the statements

Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

Was any code change / package update done?