title: Android:Email: E/AbstractSyncService( 529): java.lang.NullPointerException occurs every time
body: <p>I am working on Active sync in Android. I get "java.lang.NullPointerException" every time.</p>
  
  <p>Logs shows:</p>
  
  <pre><code>Uncaught exception in EasSyncService 
  java.lang.NullPointerException
   org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:453)
   at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
   at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
   at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
   at com.android.exchange.EasSyncService.sendHttpClientPost(EasSyncService.java:787)
   at com.android.exchange.EasSyncService.sendPing(EasSyncService.java:721)
   at com.android.exchange.EasSyncService.runPingLoop(EasSyncService.java:1093)
   at com.android.exchange.EasSyncService.runAccountMailbox(EasSyncService.java:957)
   at com.android.exchange.EasSyncService.run(EasSyncService.java:1460)
   at java.lang.Thread.run(Thread.java:1096)
  </code></pre>
  
  <p>This error has been noticed in logs when I am sending http request using POST. Sending the ping command gives the above error some times.</p>
  
  <p>I am not able to figure out why this error occurs and how it can be avoided . Kindly any one can give solution to above and solve the same .</p>
  
  <p>Solution is appreciated well in advance.</p>