From e0ebcd8e6c04fc3d39844722bce74abe540bfe3c Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Thu, 13 May 2010 12:11:31 -0700 Subject: [PATCH] Test for NPE in EasSyncService during alarm() call Bug: 2681197 Change-Id: I1795f81ef5a41440fa6fa17f278562fc076dff3f --- src/com/android/exchange/EasSyncService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/exchange/EasSyncService.java b/src/com/android/exchange/EasSyncService.java index aa0d5b4a5..e5b9919c0 100644 --- a/src/com/android/exchange/EasSyncService.java +++ b/src/com/android/exchange/EasSyncService.java @@ -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