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:
parent
d2481f95f2
commit
4a7a50f6a6
@ -1093,7 +1093,9 @@ public class EasSyncService extends AbstractSyncService {
|
||||
|
||||
// Set up our protocol version
|
||||
mProtocolVersion = mAccount.mProtocolVersion;
|
||||
if (mProtocolVersion != null) {
|
||||
mProtocolVersionDouble = Double.parseDouble(mProtocolVersion);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user