Merge commit 'd40977d14a355fc4d610f4fd8bcbb6196f5cfc96' into kraken * commit 'd40977d14a355fc4d610f4fd8bcbb6196f5cfc96': Server sending unsupported policies will cause NPE
This commit is contained in:
commit
1c78324f49
@ -1286,7 +1286,10 @@ public class EasSyncService extends AbstractSyncService {
|
|||||||
// the framework; if so, return the ProvisionParser containing the policy set and
|
// the framework; if so, return the ProvisionParser containing the policy set and
|
||||||
// temporary key
|
// temporary key
|
||||||
PolicySet ps = pp.getPolicySet();
|
PolicySet ps = pp.getPolicySet();
|
||||||
if (SecurityPolicy.getInstance(mContext).isSupported(ps)) {
|
// The PolicySet can be null if there are policies we don't know about (e.g. ones
|
||||||
|
// from Exchange 12.1) If we have a PolicySet, then we ask whether the device can
|
||||||
|
// support the actual parameters of those policies.
|
||||||
|
if ((ps != null) && SecurityPolicy.getInstance(mContext).isSupported(ps)) {
|
||||||
return pp;
|
return pp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user