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
This commit is contained in:
Marc Blank 2009-12-14 17:17:30 -08:00
parent d2481f95f2
commit 4a7a50f6a6

View File

@ -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;
}