mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
fix NPE for policy
This commit is contained in:
parent
3c4ef275f1
commit
62f2a214f3
@ -43,9 +43,11 @@ public class PolicyEvaluationServiceImpl implements PolicyEvaluationPoint {
|
|||||||
@Override
|
@Override
|
||||||
public List<ProfileFeature> getEffectiveFeatures(DeviceIdentifier deviceIdentifier)
|
public List<ProfileFeature> getEffectiveFeatures(DeviceIdentifier deviceIdentifier)
|
||||||
throws PolicyEvaluationException {
|
throws PolicyEvaluationException {
|
||||||
|
List<ProfileFeature> effectiveFeatures = null;
|
||||||
List<ProfileFeature> effectiveFeatures = evaluation.getEffectivePolicy(deviceIdentifier).
|
Policy effectivePolicy = evaluation.getEffectivePolicy(deviceIdentifier);
|
||||||
getProfile().getProfileFeaturesList();
|
if (effectivePolicy != null) {
|
||||||
|
effectiveFeatures = effectivePolicy.getProfile().getProfileFeaturesList();
|
||||||
|
}
|
||||||
return effectiveFeatures;
|
return effectiveFeatures;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user