Merge branch 'master' into 'master'

Add missing commit in master - Fix NPE for policy

See merge request entgra/carbon-device-mgt!177
merge-requests/195/head
Dharmakeerthi Lasantha 5 years ago
commit e42950dd76

@ -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…
Cancel
Save