am c7931b07: am e0ebcd8e: Test for NPE in EasSyncService during alarm() call

Merge commit 'c7931b07e605bca3b59f295877fea7f163001a66' into kraken

* commit 'c7931b07e605bca3b59f295877fea7f163001a66':
  Test for NPE in EasSyncService during alarm() call
This commit is contained in:
Marc Blank 2010-05-14 09:53:09 -07:00 committed by Android Git Automerger
commit 19025fda24
1 changed files with 1 additions and 0 deletions

View File

@ -235,6 +235,7 @@ public class EasSyncService extends AbstractSyncService {
*/
public boolean alarm() {
HttpPost post;
if (mThread == null) return true;
String threadName = mThread.getName();
// Synchronize here so that we are guaranteed to have valid mPendingPost and mPostLock