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

Merge commit 'e0ebcd8e6c04fc3d39844722bce74abe540bfe3c' into froyo-plus-aosp

* commit 'e0ebcd8e6c04fc3d39844722bce74abe540bfe3c':
  Test for NPE in EasSyncService during alarm() call
This commit is contained in:
Marc Blank 2010-05-14 09:51:10 -07:00 committed by Android Git Automerger
commit c7931b07e6
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