I am getting "Object reference not set to an instance of an object" error when trying to replace string

Hi,

I am getting “Object reference not set to an instance of an object” error when trying to replace string

can anybody help ?

Thanks

@AjitNayak
Try to print your string, Most probably your string is empty/not intialised

@AjitNayak

check the String, It is returning null, So that string is not able to replace

Hope this helps

Thanks

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.