Test for NPE in EasSyncService during alarm() call

Bug: 2681197
Change-Id: I1795f81ef5a41440fa6fa17f278562fc076dff3f
This commit is contained in:
Marc Blank 2010-05-13 12:11:31 -07:00
parent 3778b3ed7e
commit e0ebcd8e6c
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