null pointer exception in GeoPoint on android
<p>in my app i am storing latitude and longitude in a List as GeoPoint as follows:</p>

<p><code>List&lt;GeoPoint&gt;geo;</code></p>

<p>here i convert latitude and longitude into GeoPoint and store in list. </p>

<pre><code>GeoPoint tmp;

new GeoPoint((int) ( 9.909228086471558 * 1E6), (int) ( 78.10081958770752 * 1E6)); 
geo.add(tmp); // i get null pointer exception . Line no:42
</code></pre>

<p>Logcat</p>

<pre><code>  05-30 18:33:25.203: ERROR/AndroidRuntime(6363): Caused by: java.lang.NullPointerException
  05-30 18:33:25.203: ERROR/AndroidRuntime(6363):     at net.learn2develop.GoogleMaps.main.onCreate(main.java:42)
  05-30 18:33:25.203: ERROR/AndroidRuntime(6363):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1132)
  05-30 18:33:25.203: ERROR/AndroidRuntime(6363):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
</code></pre>

<p>how to clear the null pointer exception. please help me.</p>
