6
Reply

How to overcome the Object reference error?

Dinesh Santhalingam

Dinesh Santhalingam

Feb 22 2017 7:40 AM
243
  1. last = res.LastOrDefault();//get the last string of res array
  2. string[] final = last.Split(new char[] { '(' }).ToArray();  
Am using the above code in my program.But there is a error is populated.
 "object reference not set to an instance of an object " .How to overcome this?
 

Answers (6)