From 4a7a50f6a694c3d57cb18ee8011c473851b065a8 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Mon, 14 Dec 2009 17:17:30 -0800 Subject: [PATCH] Fix potential NPE in earlier CL * Noted this problem in reviewing a newer CL * Fix is to add a check in setupService Change-Id: Ia4d71365f8036aac8bf531b835b184dabfbc06fa --- src/com/android/exchange/EasSyncService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/exchange/EasSyncService.java b/src/com/android/exchange/EasSyncService.java index 45c3dcbcd..ce6185610 100644 --- a/src/com/android/exchange/EasSyncService.java +++ b/src/com/android/exchange/EasSyncService.java @@ -1093,7 +1093,9 @@ public class EasSyncService extends AbstractSyncService { // Set up our protocol version mProtocolVersion = mAccount.mProtocolVersion; - mProtocolVersionDouble = Double.parseDouble(mProtocolVersion); + if (mProtocolVersion != null) { + mProtocolVersionDouble = Double.parseDouble(mProtocolVersion); + } return true; }