Interrupted point at "getAddress(geoLng,geoLat);" go to Double.class. It should go to the method of getAddress().why?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/11673774/execute-the-getaddressgeolng-geolat-nullpointerexception">execute the &ldquo;getAddress(geoLng,geoLat);&rdquo; NullPointerException</a>  </p>
</blockquote>



<p>why do not execute the "getAddress(geoLng,geoLat);" "address = coder.getFromLocation(mlat, mLon, 3);" 07-27 00:21:14.655: E/AndroidRuntime(1228): java.lang.NullPointerException
Interrupted point at  "getAddress(geoLng,geoLat);"  go to Double.class. It should go to the method of getAddress().why?
   Below is the code:</p>

<pre><code>@Override
public void onLocationChanged(Location location) {
    // TODO Auto-generated method stub
    if (location != null) {
        Double geoLat = location.getLatitude();
        Double geoLng = location.getLongitude();
        String str = ("location:(" + geoLng + "," + geoLat + ")");


        getAddress(geoLng,geoLat);

    }
}
//
public void getAddress(final double mlat, final double mLon) {
    Thread t = new Thread(new Runnable() {
        public void run() {
            try {

                address = coder.getFromLocation(mlat, mLon, 3);
                if (address != null || address.size() &gt; 0) {

                    /*handler.sendMessage(Message.obtain(handler,
                            Constants.GEOCODER_RESULT));*/

                }

        }catch (AMapException e) {
            // TODO Auto-generated catch block
            handler.sendMessage(Message
                    .obtain(handler, Constants.ERROR));

    }}});

    t.start();

}
</code></pre>
