Object reference not set to an instance of object in getText

if still error persists, then try to initialize the variable at start and assign empty string to it.

4 Likes