title: Character array declaration throws null reference exception
body: <pre><code>char[] delimiter = { ':' };
  </code></pre>
  
  <p>The above line throws null reference exception on my production server but on my local machine there is no issue. Please help me to resolve this issue.</p>
  
  <p>Relevat code</p>
  
  <pre><code>56           char[] delimiter = { ':' };
  57           string[] split = completeString.Split(delimiter);
  58           int first = Int32.Parse(split[INDEX1]);
  59           string second = split[INDEX2];
  60           string third = split[INDEX3];
  </code></pre>
  
  <p>And the exception log says line 56 generates the exception.</p>
  
  <p>Following is the stack trace</p>
  
  <pre><code>System.NullReferenceException: Object reference not set to an instance of an object.
    at *****.Method2(String str1, String completeString) in *****\Class2.cs:line 56
    at *****.Method1(String str1, String str2) in *****\Class1.cs:line 117
  </code></pre>