Dinesh Santhalingam

Dinesh Santhalingam

  • NA
  • 737
  • 358.8k

How to overcome the Object reference error?

Feb 22 2017 7:40 AM
  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)