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

View File

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