title: NullReferenceException only when building and running in android in unity
body: <p>So I have the following code: </p>
  
  <pre><code>LongLat[0] = Convert.ToDouble(Input.location.lastData.latitude);
  LongLat[1] = Convert.ToDouble(Input.location.lastData.longitude);
  if (Input.location.status == LocationServiceStatus.Running) { print("Running"); }
  print(LongLat[0]);
  </code></pre>
  
  <p>I define LongLat as a public array:</p>
  
  <pre><code>public double[] LongLat = new double[2];
  </code></pre>
  
  <p>When I run this in the unity editor I have no issues ( At a later point i redefine LongLat since obviously the pc has no GPS). But when I build and run on android I get a NullReferenceException on the fourth line, print(LongLat[0]), It is not clear to my why this is happening. </p>
  
  <p>The location services are running.</p>
  
  <p>Here is ouput from adb.</p>
  
  <pre><code>07-02 23:48:37.409 20555 20570 I Unity   : NullReferenceException: Object reference not set to an instance of an object
  07-02 23:48:37.409 20555 20570 I Unity   :   at Location.GetLocation () [0x00065] in F:\Dropbox\Dropbox\UnityGames\Tagger\Assets\Location.cs:205
  07-02 23:48:37.409 20555 20570 I Unity   :   at Location+&lt;Start&gt;c__Iterator0.MoveNext () [0x00233] in F:\Dropbox\Dropbox\UnityGames\Tagger\Assets\Location.cs:82
  07-02 23:48:37.409 20555 20570 I Unity   :   at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00028] in /Users/builduser/buildslave/unity/build/Runtime/Export/Coroutines.cs:17
  </code></pre>
  
  <p>If I comment out </p>
  
  <pre><code>LongLat[0] = Input.location.lastData.latitude;
  LongLat[1] = Input.location.lastData.longitude;
  </code></pre>
  
  <p>and use:</p>
  
  <pre><code>LongLat[0] = 55.953251f; 
  LongLat[1] = 3.188267f;
  </code></pre>
  
  <p>It works fine.</p>